Skip to content

Question: is there a way to tell a mux-video element to stop streaming? #422

Answered by luwes
bennlich asked this question in Q&A
Discussion options

You must be logged in to vote

Currently there is no idiomatic way to do that. Good idea to bring up to the team.

There is a undocumented muxVideo._hls property that returns the instance of hls.js.
With access to that you could disable loading. I believe muxVideo._hls.stopLoad() should do it. Cheers!

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@bennlich
Comment options

@bennlich
Comment options

Comment options

You must be logged in to vote
2 replies
@bennlich
Comment options

@bennlich
Comment options

Answer selected by bennlich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #421 on September 24, 2022 13:38.