-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1850) Refer to the original PR: #1837 In Cobalt: * Removed tunnel mode check on audio decoder in Cobalt. The check prevents tunnel mode from being enabled via mime attribute, which is required to enable tunnel mode on the primary video of the demo, as mentioned below. The previous implementation checks whether the audio decoder supports tunnel mode before enabling it. However, none of them does, and the audio will be decoded to PCM before sending to the AudioTrack, so whether the audio decoder supports tunnel mode is irrelevant. In the demo: 1. Now the demo tries to play the primary video using tunnel mode, by passing "tunnelmode=true" as an extra mime attribute when supported. 2. Added more streams with different codecs and resolutions, and allow specifying them at runtime. 3. Try to create com.widevine.alpha when creation of com.youtube.widevine.l3 fails. This allows the demo to run on browsers without Widevine L3 support, including Chrome. 4. Download media data at startup to reduce CPU usage durnig playback. b/175883701 Change-Id: Id1e6c3f19a509f20b8f6413840b5ad223e5437ee --------- Co-authored-by: xiaomings <[email protected]>
- Loading branch information
1 parent
2430367
commit 287697c
Showing
8 changed files
with
232 additions
and
137 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
Oops, something went wrong.