I’m looking to improve Shaka Player’s performance, particularly within a React Native environment.
One approach I’m considering is to switch the media source within the existing Shaka Player component without forcing a re-render. I believe this could lead to smoother transitions between videos.
However, when I try to implement this—by calling the player.load() function with a new manifest after the first video has finished—the new video doesn’t load completely. It doesn’t throw an error, but the loading process stops partway through.
Do you have any suggestions or insights on this approach? Any advice would be greatly appreciated.
I’m still currently testing the above idea, and I’ve found that if I stop the first video and then try to play a second one by calling the player.load() function, the video manifest loads correctly, but the app crashes partway through the process.
Is it a requirement to call a method like VideoPlayer.clearCaptionViewHandle every time I load a new video?
Our team is working on the fix to implement load() API to enable reuse of a single videoplayer instance for multiple playbacks — eliminating the need to destroy and recreate instances.
The fix should be available in the upcoming SDK release version of 0.23.
When the new SDK release is available, we recommend you to update the same for this issue.