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 sometimes plays sound but no video #186

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

zigavehovec
Copy link
Contributor

Problem (PRN-26)

Sometimes video suddenly doesn't play anymore, but audio continues to play.
Issue: https://github.com/bitmovin/bitmovin-player-react-native/issues/180

Turns out that this was influenced by a React Native issue, reported here: facebook/react-native#17968

In our case the native PlayerView adds and removes SurfaceView under the hood. After screen rotation newly added SurfaceView's size wasn't calculated properly, which caused no video to be displayed.

Changes

  • Add a workaround that triggers a new layout measurement

@zigavehovec zigavehovec marked this pull request as ready for review August 11, 2023 10:04
@rolandkakonyi
Copy link
Contributor

Tested this and it works!

@rolandkakonyi rolandkakonyi self-requested a review August 11, 2023 10:45
@zigavehovec zigavehovec merged commit 73839b9 into development Aug 11, 2023
4 checks passed
@zigavehovec zigavehovec deleted the PRN-26/180-video-not-playing-audio-playing branch August 11, 2023 11:19
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.

3 participants