react-native-nodemediaclient icon indicating copy to clipboard operation
react-native-nodemediaclient copied to clipboard

Android: Second time camera not working displaying black screen.

Open codal-mpawar opened this issue 3 years ago • 4 comments

@illuspas @matinzd @Andriiklymiuk @lethienhung

Hey guys, I am facing issue in android. When i start streaming first time camera working fine. but when i start again after 2 or 3 minute its showing me a black screen. its not freez or not crash.

Help me on that I am block here!

Thank you.

codal-mpawar avatar Jul 08 '21 11:07 codal-mpawar

i am also facing same issue on android.

pradeeptry avatar Sep 19 '21 11:09 pradeeptry

@pradeeptry you have any solutions?

Pakile avatar Oct 15 '21 04:10 Pakile

@Pakile Try to navigate on the recording screen by push method via react navigation. Do not use navigate. The screen should be properly unmounted when we go back. Hope it will help..

pradeeptry avatar Oct 15 '21 10:10 pradeeptry

@pradeeptry "The screen should be properly unmounted when we go back." I've componentWillUnmount() { this.vp.stop(); } for stop camera but when use rear camera, -> go back -> start live -> black screen, I use push method via react navigation but still a black screen

I check Logcat log E/Camera: Error 2

Pakile avatar Oct 24 '21 16:10 Pakile