-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
black screen issue occurs on a particular device (emulator: Pixel_3a_API_34_extension_level_7_arm64-v8a).
Please refer to the following link.
react-native-webrtc/react-native-webrtc#1332
https://stackoverflow.com/questions/56700614/android-webrtc-black-green-screen-with-uv4l-stream
Cause : Video decoder, encoder appears to be the cause of the problem. Or, considering it's an emulator, it could be a problem with a device that doesn't support hardware acceleration
Solution : Resolved by changing video encoder and decoder to Software Video Factory
However, Software Video Factory does not use hardware acceleration, which may cause performance problems.
private val videoDecoderFactory by lazy {
// DefaultVideoDecoderFactory(eglBaseContext)
SoftwareVideoDecoderFactory()
}
private val videoEncoderFactory by lazy {
SoftwareVideoEncoderFactory()
// val hardwareEncoder = HardwareVideoEncoderFactory(eglBaseContext, true, true)
// SimulcastVideoEncoderFactory(hardwareEncoder, SoftwareVideoEncoderFactory())
}
I have a log when the issue occurs, but I will attach it if necessary
Metadata
Metadata
Assignees
Labels
No labels