-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fix: add "RELEASED_ALL_BUT_CAST_SESSION" mode
issue this solves: ================== * in "BrowserActivity": * select video URL(s) to watch * in "VideoActivity": * start a cast session * playlist of video URLs appears on screen * when a video in playlist is clicked: * video queue loads in Chromecast * position in queue skips to selected playlist item * "onPause" runs when Activity screen is closed * "PlayerManager" enters "CAST_ONLY" mode and releases all other resources * in "BrowserActivity": * select video URL(s) to watch * in "VideoActivity": * "onResume" runs and detects that "PlayerManager" is running in "CAST_ONLY" mode * previously: * "PlayerManager" transitioned: "CAST_ONLY" -> "RELEASED" -> "NORMAL" * "RELEASED" mode releases all resources, including closing the CastSession * "currentPlayer" is an instance of ExoPlayer * now: * "PlayerManager" transitions: "CAST_ONLY" -> "RELEASED_ALL_BUT_CAST_SESSION" -> "NORMAL" * "RELEASED_ALL_BUT_CAST_SESSION" mode is identical to "RELEASED", but CastSession is not closed * "currentPlayer" is an instance of CastPlayer * the previous video queue that was casting continues uninterupted * the new playlist of video URLs appears on screen * when a video in playlist is clicked: * new video queue loads in Chromecast * position in new queue skips to selected playlist item
- Loading branch information
1 parent
2bece81
commit 56c1835
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters