api.video-reactnative-live-stream: Failed to create codec for: {mime=video/avc, width=720, height=1280}
Describe the bug README example failing on Samsung Galaxy J7 Prime device (Android).
Error while updating property 'video' of a view managed by: ReactNativeLiveStreamView
null
Failed to create codec for: {mime=video/avc, width=720, height=1280}
[stack trace]
To Reproduce Steps to reproduce the behavior:
- Try to run the README example
Expected behavior App to not crash. Maybe handle unsupported codec on devices gracefully?
Smartphone (please complete the following information):
- Device: Samsung Galaxy J7 Prime
- OS: Android
- Version
1.2.1
Additional context
I packaged react-native-livestream into custom Expo dev-client.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (11 by maintainers)
@ThibaultBee tested it with the device I was having trouble and seems to be working, btw do you have any library to play hls or rtmp?
Hi, This crash seems to be related to few models of Samsung. On these models, for an unknown reason, the
MediaCodecAPI does not find an encoder that matches the expected configuration althought there is such encoder in the phone. We are waiting to find one of this device. We will let you know when this issue is fixed.