Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player keeps streaming HLS while playback is paused #435

Open
chris-ruecker opened this issue Sep 14, 2024 · 6 comments
Open

Player keeps streaming HLS while playback is paused #435

chris-ruecker opened this issue Sep 14, 2024 · 6 comments

Comments

@chris-ruecker
Copy link

Hi,

when the player has an LLHLS stream in the playlist, but playback is paused or has not even been once started yet, it still is downloading the stream in the background.

Is there a way to configure so it shows the thumbnail "stream" while paused, and when pressing play to start actually streaming LLHLS?

@naanlizard
Copy link

I'd like to know how to prevent bandwidth usage while paused or not yet played too, it can be pretty significant usage for our use case, we've just rolled with it until now.

@getroot
Copy link
Member

getroot commented Sep 14, 2024

I think this is how hls.js works. The best solution in this case would be to combine the pause button and unload.

@naanlizard
Copy link

@chris-ruecker
Copy link
Author

I think this is how hls.js works. The best solution in this case would be to combine the pause button and unload.
@getroot

I could not find an unload function, which unload function do you mean? Is it on ovenplayer or hls.js, and is there a function on ovenplayer to return the corresponding hls player?

https://github.com/video-dev/hls.js/blob/master/docs/API.md#hlsstopload

This seems relevant

@naanlizard
Do you know of a way to easliy get the correct instance of hls.js? I often have multiple players on one page.

@naanlizard
Copy link

Nope but if I figure it out I'll post

@chris-ruecker
Copy link
Author

@naanlizard
I have found out that the Ovenplayer instance has a function called getMseInstance(), which returns the provider.

But, probably the ovenplayer itself has to be modified, like @getroot said by editing the play button to call start and stopLoad()

I have not yet been able to come up with a satisfying solution though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants