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.


20.5.2
2025 © PlayerJS

登录

登录

免费注册

注册
注册即表示您同意服务条款
登录(如果您有帐户)

恢复密码

恢复
忘记电子邮件?联系我们