轻量级集成

  抱歉,此页面正在等待翻译成土耳其语

Only a light poster will be displayed on the page, and the player itself will be created only after clicking. This mode can positively affect the rendering speed of the page by the browser.

Please enable the PRO option Services / Poster before the player creation and use new PlayerjsPoster({}) instead new Playerjs({})

let player = new PlayerjsPoster({id:"player", file:"URL", poster:"URL", postericon:1});

There you can use an image or a short mp4 video (it will be played when you hover over).

You can also pass postericon:1 to display the launch icon in the center. You can add the posterplay:0 option if you don't want to start automatically on click. You can add the posterscale:0 option if you don't want to scale the poster on hover.

API

You can also use JS API, just call the player via global variable playerjs[id]

playerjs["player"].api("play");

Youtube

You can specify a YouTube video poster like this:

https://img.youtube.com/vi/videoID/maxresdefault.jpg

Encoding

Do not encrypt the link to the poster that is loaded in this integration. The remaining links that are transmitted to the player can be encrypted. If you are encrypting the entire object with variables, then use the play parameter for the string with the encrypted data.

let player = new PlayerjsPoster({id:"player", poster:"URL", play:"encoded-string"});

19.12.10
2024 © PlayerJS

登录

登录

免费注册

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

恢复密码

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