Leichte Integration

  Leider wartet diese Seite auf die Übersetzung ins Deutsche

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.14
2024 © PlayerJS

Kostenlos anmelden

Registrieren Sie sich
Mit der Anmeldung stimmen Sie den Nutzungsbedingungen
Login zu, wenn Sie ein Konto haben.

Passwort wiederherstellen

Wiederherstellen
E-Mail vergessen? Kontaktieren Sie uns