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

When I put the demo in the background, he will crash. #4

Open
lchben opened this issue Dec 3, 2016 · 3 comments
Open

When I put the demo in the background, he will crash. #4

lchben opened this issue Dec 3, 2016 · 3 comments

Comments

@lchben
Copy link

lchben commented Dec 3, 2016

PeerVideoActivity
image
How do I deal with this bug?

@jpsjanne jpsjanne self-assigned this Dec 7, 2016
@jpsjanne
Copy link
Contributor

jpsjanne commented Dec 7, 2016

When you put the app in the background, it will actually run OnStop event. When you return to the app, it will run onRestart, onStart, onResume. Currently the app is set to end the call, as you can see in onStop event.

Here is a good reference image for Android activities:
https://i.stack.imgur.com/2CP6n.png

If you want to keep the active call alive when the app goes on the background, you will need to modify the mentioned 3 events to support it. Currently nubo-test terminates the active call if the app goes on the background.

@lchben
Copy link
Author

lchben commented Dec 8, 2016

image

image
@jpsjanne I solved this problem .app can now run in the background. But there is a problem:
When the app is running in the background when the sound transmission back very slowly.I say a word another person will be around 5 seconds later to hear

@vviek
Copy link

vviek commented Jun 8, 2017

hii ,
you have commented this part (nbmWebRTCPeer.stopLocalMedia();).It means that you wont be able access your camera if this activity is in background.
Have you checked that ?

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

3 participants