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

App crashes on android on navigating away from camera screen #11

Closed
iqbaldeep opened this issue Apr 6, 2018 · 2 comments
Closed

App crashes on android on navigating away from camera screen #11

iqbaldeep opened this issue Apr 6, 2018 · 2 comments
Labels

Comments

@iqbaldeep
Copy link

I am trying to use react-native-red5pro package to build a mobile app which publishes camera feed to red5 server. I am facing issues when user navigates away from camera screen(say by pressing back) on android device. I unpublish on componentWillUnmount but still the app crashes everytime

componentWillUnmount = () => unpublish(findNodeHandle(this.refs.video))

I see below errors before the app crashes

04-04 03:32:22.980 11035-11352/? E/EmulatedCamera_Preview: onNextFrameAvailable: Unable to dequeue preview window buffer: 19 -> No such device
04-04 03:32:23.024 1293-1851/? E/BufferQueueProducer: [SurfaceView - com.everystream.live/com.everystream.live.MainActivity] dequeueBuffer: BufferQueue has been abandoned```
@bustardcelly
Copy link
Contributor

@iqbaldeep Is this only reproducable in the Android Emulator, or can you reproduce on your device(s), as well.

Generally, we do not provide support for Android Emulators and iOS Simulators for the SDK due to the media access requirements.

@bustardcelly
Copy link
Contributor

I separated out the publisher and subscriber views in the examples to test the use of the following:

componentWillUnmount = () => unpublish(findNodeHandle(this.red5pro_video_publisher))

No crashes were detected on device deploys. I believe it is an issue with trying to run the examples in the Android Emulator which is not supported by the Red5 Pro Mobile SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants