Live countdown


You can place a countdown to the start of the live broadcast in the player. To do this you need to create your own custom text element in the builder with the command countdown

And specify the start time of the broadcast in the Text field in UTC format YYYY-MM-DD hh:mm:ss and the GMT time zone. This time must be in the future, otherwise the element will not be displayed in the player. You can also specify the start time in the player code using the countdowntext parameter

var player = new Playerjs({id:"player", file:"//site.com/live.m3u8", countdowntext:"2020-08-15 21:00:00 GMT+01"});

You can change the position, colors, sizes, font etc. in the settings of create element. When the timer runs out, the player will try to start playing.

Add-ons

You can add special labels to the start time using a forward slash /

At first you can specify the label that will be displayed if the stream is late:

2021-01-20 21:56:00 GMT+08/The broadcast will start soon

Then you can specify the label that will be displayed before the countdown:

2021-01-20 21:56:00 GMT+08/The broadcast will start soon/Start in

You can also specify your own separator for days, hours, minutes and seconds:

2021-01-20 21:56:00 GMT+08/The broadcast will start soon/Start in/d:h:m:s

19.9.112024 © PlayerJS

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