Join GitHub today
Multiple createMediaSource calls when initiating the playback #1570
Have you read the FAQ and checked for duplicate open issues?:
What browser and OS are you using?:
It does not matter. Use any sample content.
When we initialize Shaka Player, attach method calls createMediaSource method. Then, when we call .load() method, it also calls unload method. However, unload method calls createMediaSource as well. Eventually, this creates MediaSource twice even though previous one is destroyed.
Please let me know if the issue is still unclear, but solution should be very straightforward. This if seems very suspicious .
@SemihGk Good new, I am already looking through the load chain code for work with #816. If this issue is not causing any major issues for you or your users, would you be willing to wait until I make more progress on #816 where then we can re-evaulate whether this is still an issue after more of that work is complete?
@vaage , I appreciate for your concern. This is definitely not an issue as this is not causing any problem on most of the platforms (if we do not count performance case) except 2019 LG TV . I made a fix on my fork. So, there is no rush at all. This is just a 'good to have' enhancement. Thank you.