iFrame API

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.

17.1.62022 © PlayerJS

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Restore password

Forgot email? Contact us