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

Destroy hls player on changing source. Unit test is included. #874

Closed
wants to merge 1 commit into from
Closed

Destroy hls player on changing source. Unit test is included. #874

wants to merge 1 commit into from

Conversation

PeterNaydenov
Copy link

Current behaviour: On change source we creating new HLS player but the old one still exists and continue to download the manifest. If we switch 2-3 channels we have 2-3 working hls players and HLS errors begin.

Fix: We are destroying hls player instance before creating the new one. No more errors and additional traffic. Unit test was included.

@cookpete cookpete closed this in d5f1a42 May 23, 2020
@PeterNaydenov PeterNaydenov deleted the hls-change-source branch May 24, 2020 03:44
Webmaster1116 added a commit to Webmaster1116/video-player that referenced this pull request May 20, 2021
webmiraclepro added a commit to webmiraclepro/video-player that referenced this pull request Sep 9, 2022
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

Successfully merging this pull request may close these issues.

1 participant