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

Application crashes / stops working when screen locks #6

Open
adamantivm opened this issue Jan 6, 2015 · 4 comments
Open

Application crashes / stops working when screen locks #6

adamantivm opened this issue Jan 6, 2015 · 4 comments

Comments

@adamantivm
Copy link
Member

We need to implement whatever mechanisms are necessary so that it can gracefully handle the Activity lifecycle

@ashyonline
Copy link
Contributor

Tests and results:

Running video publisher in a device, mission control in another one

video_publisher is:

  1. minimized: when maximized, the video player continues playing video
  2. rotated: video player continues playing
  3. locked: video_publisher device: video_publisher stops streaming (solved after handling VideoPublisherMainActivity life cycle). After fix, it sends packages.
  4. closed: TO-FIX: Close video_publisher and restart the application: doesn't reconnect. If I restart mission_control after restarting video_publisher, they both stream and play perfectly.

mission_control is:
5. minimized: TO-FIX: it doesn't play any more frames (frames arrive but they are dropped). Activity clycle: OnPause->OnStop->OnResume.
6. rotated: when device is rotated, it keeps playing video. Activity cycle: OnPause->OnStop->OnResume.
7. locked: it keeps playing. Activity cycle: OnPause->OnStop->OnResume.
8. closed: when restarted, it reconnects.

Note: I'm having issues using the samsung S4 to publish video. The frames come out off order (most of them) and the video in mission_control is delayed, fragmented and not clear at all.

@ashyonline
Copy link
Contributor

Two cases are still having trouble. Test and fix.

@FlyingPumba
Copy link
Contributor

Wouldn't this be fixed if #3 would be correctly fixed ?

@ashyonline
Copy link
Contributor

No.

The no fixed cases are:

Video publisher is closed and restarted.
Mission control is minimized.

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