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

Any way to enforce a playback timeout/limit on the hosted player?


Hi.
We are self-hosting live video streams and playing through JWPlayer Hosted.
We are seeing some viewers open our streams and just leave them playing for many, many hours, swallowing up our data allowances.

Is there any way to enforce a time-out / limit of say 1 hour of playback?

Thanks

1 Community Answers

Timoor Kurdi

JW Player Support Agent  
0 rated :

Hi,

My name is Timoor Kurdi and I’m a Support Engineer at JW Player.

There is no built-in functionality for this, you could start an interval and after ten minutes you can ask the user are you still watching or something to that effect? You could use a setTimeout or setInterval event as well which is a native JavaScript function.

You could use our on(viewable) event and then display the functionality mentioned above – https://developer.jwplayer.com/jw-player/docs/javascript-api-reference/#jwplayeronviewable

Regards,
Timoor Kurdi
Support Engineer

Post Your Public Answer