forked from youtube/cobalt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set position and speed on the Android MediaSession.
This allows Assistant to do relative seeks since it's now able to get the accurate playback position from its MediaController. The SbPlayer is short-circuited from the Android player implementation to the Android MediaSessionClient implementation. This allows it to learn the position and speed with SbPlayerGetInfo2 in lieu of the missing information not available through the web MediaSession. Note that duration is NOT included since it's not ever set by the shared Starboard player internal implementation. Setting it to the wrong value negatively affects Assistant, so we don't set it at all. This should not be a permanent fix, as the web MediaSession should be extended to allow live playback metadata to be communicated from the web app to the user agent. w3c/mediasession#70 w3c/mediasession#202 b/111302299 Change-Id: I9e29176b43f06473fdb6a990dfd088908aa2fa9f Former-commit-id: 9fec6ae
- Loading branch information
1 parent
8dd7b2b
commit 2717ca8
Showing
6 changed files
with
58 additions
and
7 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
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