Comments (1)
Hello,
I'm not sure about the reason but maybe the app go to background for some reason and surfaceDestroyed callback is called stopping the stream.
In this case you will need to handle with the app lifecycle. Since you can't detect if the app go background for user interaction or for this reason (at least I don't know how to do it) you will need to think how to handle this case.
You try this 2 ways:
- Stop stream like now and notify the user that the stream stopped allowing to start again
- Try to find a way to difference user interaction reason and this case and handle the error using a service and this method to avoid stop stream:
https://github.com/pedroSG94/RootEncoder/blob/master/library/src/main/java/com/pedro/library/base/Camera1Base.java#L420 (code example)
from rootencoder.
Related Issues (20)
- Recorded Video Changing the video quality bitrate HOT 3
- Is there any code sample to use it with android audio recording and broadcast to RTSP server HOT 1
- RuntimeException when stopStream HOT 7
- standalone local android (rtsp server) HOT 2
- 非常给力! Any thoughts on adding support for H.265 software encoding?Like X265. HOT 3
- how to record mp4 files in audio format g711a HOT 2
- java.lang.IllegalArgumentException: Unknown message type byte: 1D HOT 2
- retry server1 HOT 9
- Retry Error configure stream, setup video 451 HOT 1
- Repeatedly Creating RtspServerStream and Encountering 'Create VideoEncoder failed' Issue HOT 1
- When I recording a video, how can I record a new video with a custom rect in camera frame HOT 4
- Hello I'm using OpenGlView and want to set the Hue of the camera how to write. HOT 1
- App crashing while migrating to Android 14 from Android 13 HOT 10
- Recording video with multiple part, screen stuck HOT 7
- How to keep streaming when rotating device HOT 6
- RTMP Authentication not working HOT 3
- Switching between Rtmp stream audio and video HOT 7
- How to play multiple files with RtspServerFromFile HOT 6
- Echo Problem HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rootencoder.