Add a player to your website


The player's script is simple placed in the head tag of the page.
<script src="//site.com/playerjs.js" type="text/javascript"></script>

Integration code for player container

<div id="player"></div>

<script>
   var player = new Playerjs({id:"player", file:"//site.com/video.mp4"});
</script>

All settings are in the builder, so only the id is required (can be changed to any other instead of player).

Other variables that may be useful:

file URL to a file video or audio, playlist, HLS, DASH or YouTube
poster URL to the image that will be displayed on screen before starting
title inscription or title
autoplayautoplay (1 or 0)
start start playback from the specified second
end end playback on the specified second
subtitle URL of subtitle

Javascripts are perfectly cached by the browser, so for critical updates, it is worth dumping the cache by simply renaming the file (remember to change the name in the embed code):

playerjs.js -> playerjs1.js

Other methods

Integration with iframe

Wordpress plugin


2018 © Binom LLC

Login

Restore password
Sign up
Log in

Sign up free

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

Restore password

Restore
Forgot email? Contact us