Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to get end-of-the-stream event when live video completed


In our web page, where JwPlayer is embedded, we need to get end-of-the-stream event to make some actions. We found out that onComplete callback meets our needs pretty well, but there is a problem. It works just fine for VOD stream, but at the end of live stream this callback is not fired, and the player itself stays in buffering state. Is there any way to alter this behaviour? Or is there any other way for player to notify external code that the live stream is ended?

1 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You could use onBuffer.

So, if the event is over, the player will buffer, and you can do something like this:

jwplayer().onBuffer(function(){
theTimeout = setTimeout(function(){
alert(‘event over, do something’);
},5000);
});

This question has received the maximum number of answers.