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

Black Screen Issues in Some Device Environments #4

Open
YeonjunNotPed opened this issue Apr 5, 2024 · 0 comments
Open

Black Screen Issues in Some Device Environments #4

YeonjunNotPed opened this issue Apr 5, 2024 · 0 comments

Comments

@YeonjunNotPed
Copy link

YeonjunNotPed commented Apr 5, 2024

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

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

No branches or pull requests

1 participant