-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve playback speed between videos
- Update the PlaybackController to internally track the last playback speed, but still treat it as a black box from all external callers - Add a test we don't throw a NPE trying to set it before init - There's no test for checking this value gets forwarded (see below) - Change the activity to create the speed controller whilst the ControlGlue is being created. This is unfortunately a bit of a hack. There isn't a signal for onPlaybackStarted or similar we can attach to from the playback controller so we have to mess with the internals. Something I've tried to avoid greatly. I've tried adding a unit test with mocks, which was surprisingly going well. Until we create LibVLC objects mid-way. These needs some sort of factory pattern to inject mocks else it will query Android for playback capabilities failing the test. I'm going to leave this particular test as a manual case as I extracting factories out with the pending rewrite is a futile effort.
- Loading branch information
Showing
4 changed files
with
30 additions
and
6 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
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