iFrame API

  Desculpe, este artigo está disponível em inglês

This method allows you to load the content of services that use PlayerJS with iFrame API integration.

Enable the API / iFrame API option and use the link to the content provided by the service in the standard way using the file parameter. At the end of the link should be ?pjsfr, the link is passed in the usual way with the file parameter:

var player = new Playerjs({id:"player", file:"https://service.com/video?pjsfr"});

You can configure the connection timeout (7 seconds by default). If the player can't connect to the service during this time, it will display a Loading error message or use backup links.

The ad plugin must be enabled in the settings.


20.5.2
2025 © PlayerJS

Iniciar sessão

Iniciar sessão

Inscrever-se gratuitamente

Inscrever-se
Ao inscrever-se, o utilizador concorda com Termos de Serviço
Login se tiver uma conta

Restaurar a palavra-passe

Restaurar
Esqueceu-se do e-mail? Contacte-nos