Tyler_Smith
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2016
05:26 AM
Stop player when app closes (user presses home)
In Scene graph, if I have a video playing and then press the home button it leaves the stream persisting in the background and prevents the player from being used by another app (itself, netflix, youtube, etc) unless I manually restart the device. If the video is "stopped" before the app exit everything works fine.
Is there a way to detect an app close/exit event from within a screengraph component that I can listen for?
Is there a way to detect an app close/exit event from within a screengraph component that I can listen for?
Tyler Smith
1 REPLY 1
Tyler_Smith
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2016
09:40 AM
Re: Stop player when app closes (user presses home)
Looks like this is a defect of extending a custom component.
My video screen extended a "CoreScreen" component I created. This caused the player to not be destroyed when the app closed.
I changed it to extend "Group" and it is no longer an issue.
Fun times!
My video screen extended a "CoreScreen" component I created. This caused the player to not be destroyed when the app closed.
I changed it to extend "Group" and it is no longer an issue.
Fun times!
Tyler Smith