olly
4570cd37c5
Testutils: Add missing Javadoc + Misc cleanup
...
PiperOrigin-RevId: 278835106
2019-11-15 05:11:36 +00:00
olly
0a27d7b482
Don't use DRM prior to API level 18
...
PiperOrigin-RevId: 278660557
2019-11-15 05:11:26 +00:00
Stanislav Ionascu
6d9c707255
Detect Dolby Vision profile 7
...
In official documentation dvProfile 7 uses dvhe as the codec type.
2019-11-14 08:30:30 +01:00
olly
87003b30fc
Bump version to 2.10.7
...
PiperOrigin-RevId: 278658259
2019-11-05 18:36:21 +00:00
olly
f51f7bd405
Fix SurfaceControl demo app layout
...
The fixes sizes could end up being wider than the screen (e.g on Pixel 3a)
PiperOrigin-RevId: 278642828
2019-11-05 18:36:14 +00:00
aquilescanta
efc7f55616
Make DefaultDrmSession package private
...
PiperOrigin-RevId: 278639779
2019-11-05 18:36:04 +00:00
olly
02a83a5377
Delete unused theme
...
PiperOrigin-RevId: 278638978
2019-11-05 18:35:56 +00:00
christosts
7cc3943b4f
Experimental API to skip MediaCodec.stop()
...
Add experimental API on MediaCodecRenderer to skip calling
MediaCodec.stop() before the call to MediaCodec.release().
PiperOrigin-RevId: 278621032
2019-11-05 16:18:46 +00:00
kimvde
c8170e18d0
Update AndroidX Test versions to latest
...
Split the version of the sublibraries because their latest version
number is different. See
https://developer.android.com/jetpack/androidx/releases/test#1.2.0 .
PiperOrigin-RevId: 278585090
2019-11-05 16:18:38 +00:00
olly
9842ea7f22
Move classes that don't belong in testutils out of testutils
...
PiperOrigin-RevId: 278401000
2019-11-05 16:18:24 +00:00
olly
d587def451
Fix Javadoc broken due to lack of import
...
PiperOrigin-RevId: 278399475
2019-11-05 16:18:16 +00:00
olly
5968c8345b
Remove auto-value dependency
...
PiperOrigin-RevId: 278398045
2019-11-05 16:18:09 +00:00
kimvde
165ff55502
Fix inverted arguments in FlacReader format creation
...
PiperOrigin-RevId: 278332587
2019-11-05 16:18:01 +00:00
olly
46d58b5eda
Add missing IntDef case in switch
...
PiperOrigin-RevId: 278332276
2019-11-05 16:17:54 +00:00
kimvde
bd61b63ebc
Remove unnecessary exceptions in method signature
...
PiperOrigin-RevId: 278327151
2019-11-05 16:17:46 +00:00
olly
880b879e8c
Suppress warnings emitted by Checker Framework version 2.11.1
...
More information:
https://docs.google.com/document/d/16tpK6aXqN68PvTyvt4siM-m7f0NXi_8xEeitLDzr8xY/edit?usp=sharing
Tested:
TAP train for global presubmit queue
http://test/OCL:278152710:BASE:278144052:1572760370662:22459c12
PiperOrigin-RevId: 278241536
2019-11-05 16:17:39 +00:00
olly
7e070683a3
Expose getMetrics() in ExoV1 and ExoV2 FrameworkMediaDrm classes.
...
PiperOrigin-RevId: 278054214
2019-11-05 16:17:31 +00:00
ibaker
922991da88
Add @NonNullApi to text packages with no blacklisted files
...
PiperOrigin-RevId: 277969385
2019-11-05 16:17:24 +00:00
kimvde
5d46d4f74f
Add parameter names to Format creation
...
PiperOrigin-RevId: 277963928
2019-11-05 16:17:16 +00:00
ibaker
15f8d8668e
Select exolist-specified subtitles by default
...
If a sample has a subtitle file listed, it makes sense to show it by
default.
PiperOrigin-RevId: 277934597
2019-11-05 16:17:08 +00:00
olly
8dcd1e53bc
Remove or suppress warnings where we use our own deprecated APIs
...
PiperOrigin-RevId: 277928790
2019-11-05 16:17:01 +00:00
ibaker
07e93c15f9
Add support for subtitle files in the demo app
...
issue:#5523
PiperOrigin-RevId: 277927555
2019-11-05 16:16:53 +00:00
olly
c5c50078d7
Reset MediaSession shuffle/repeat modes if player is null
...
- This is for consistency with PlayerControlView.
- Also update PlayerNotificationManager notification if shuffle
mode changes. This is for consistency with what happens when
the repeat mode changes. By default the notification will be
unchanged, but custom implementations can extend and then
override createNotification, and given these modes change
infrequently it feels like we can just do this. The alternative
for achieving consistency would be to remove handling of repeat
mode changes.
Issue: #6582
PiperOrigin-RevId: 277925094
2019-11-05 16:16:45 +00:00
andrewlewis
a4e7274cca
Update audio extension build configurations
...
- Fix FLAC extension build (currently broken due to use of std::array,
but fixed by migrating to NDK r20).
- Move opus and ffmpeg extensions to NDK r20. For ffmpeg, upgrade to
release 4.2 which requires using libswresample and updates to the
build script.
Issue: #6601
PiperOrigin-RevId: 277924119
2019-11-05 16:16:38 +00:00
ibaker
2106e5f328
Annotate webvtt package with @NonNullApi
...
PiperOrigin-RevId: 277916734
2019-11-05 16:16:30 +00:00
ibaker
616f4774e1
Remove WebvttCueParser from null-checking blacklist
...
PiperOrigin-RevId: 277916639
2019-11-05 16:16:22 +00:00
ibaker
129efa2ebf
Remove WebvttCssStyle from null-checking blacklist
...
PiperOrigin-RevId: 277916508
2019-11-05 16:16:15 +00:00
ibaker
2139973e2c
Remove WebvttParserUtil from null-checking blacklist
...
PiperOrigin-RevId: 277916279
2019-11-05 16:16:07 +00:00
ibaker
5407c31726
Remove WebvttSubtitle from null-checking blacklist
...
PiperOrigin-RevId: 277916113
2019-11-05 16:16:00 +00:00
tonihei
5b80b4b523
Update initial bitrate estimates.
...
PiperOrigin-RevId: 277911191
2019-11-05 16:15:52 +00:00
ibaker
b972fd1f27
Remove WebvttCue from null-checking blacklist
...
PiperOrigin-RevId: 277910909
2019-11-05 16:15:45 +00:00
kimvde
ab2bfcc1b9
Fix typo in WavHeader class
...
PiperOrigin-RevId: 277910360
2019-11-05 16:15:37 +00:00
andrewlewis
656556b828
Clean up naming for GLSurfaceViews
...
PiperOrigin-RevId: 277896757
2019-11-05 16:15:29 +00:00
kimvde
242a0053c9
Add method to read more than 32 bits in ParsableBitArray
...
PiperOrigin-RevId: 277766372
2019-11-05 16:15:22 +00:00
kimvde
32dcd80b4a
Improve ParsableBitArray unit tests
...
PiperOrigin-RevId: 277744735
2019-11-05 16:15:14 +00:00
olly
981008f76e
Fix field-can-be-local warnings
...
PiperOrigin-RevId: 277732159
2019-11-05 16:15:06 +00:00
olly
f55083ab48
Minor DRM documentation tweaks
...
PiperOrigin-RevId: 277729887
2019-11-05 16:14:59 +00:00
ibaker
f554dc4ea4
Increase 2 timeouts to reduce test flakiness
...
PiperOrigin-RevId: 277710160
2019-11-05 16:14:51 +00:00
olly
d596fcd9ba
Remove unnecessary warning suppressions
...
PiperOrigin-RevId: 277709114
2019-11-05 16:14:39 +00:00
ibaker
a7b242998a
Fix subtitle parsing regex suggestions
...
Suggested by Android Studio's Inspect Code
SO seems to think there's a performance difference for the | change:
https://stackoverflow.com/questions/22132450/why-is-a-character-class-faster-than-alternation
PiperOrigin-RevId: 277707341
2019-11-05 16:14:30 +00:00
olly
5ff7f3a17e
Remove pointless arithmetic
...
PiperOrigin-RevId: 277706810
2019-11-05 16:14:19 +00:00
tonihei
f960f8a575
Forward suppression state to new playback stats sessions.
...
The value is stateful and new sessions need to be informed of the current state
PiperOrigin-RevId: 277701955
2019-11-05 16:14:11 +00:00
bachinger
01a4cf98d5
add default methods isSingleWindow and getInitialTimeline to MediaSource interface
...
PiperOrigin-RevId: 277695826
2019-11-05 16:14:03 +00:00
aquilescanta
df251ad1be
Add tests for SampleQueue isReady
...
PiperOrigin-RevId: 277691935
2019-11-05 16:13:56 +00:00
aquilescanta
2d530478ee
Make FormatHolder be entirely populated by SampleMetadataQueue
...
This should not introduce any functional changes.
PiperOrigin-RevId: 277691550
2019-11-05 16:13:48 +00:00
andrewlewis
fbea71b0fe
Fix detection of Dolby Atmos in HLS
...
E-AC3 with JOC is signaled using the CHANNELS attribute for HLS:
https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices/hls_authoring_specification_for_apple_devices_appendices
PiperOrigin-RevId: 277680300
2019-11-05 16:13:41 +00:00
andrewlewis
149ea90541
Fix throws in DashStreamingTest
...
Some methods marked as throwing DecoderQueryException actually
did not throw it. Switch to marking throws Exception
everywhere.
PiperOrigin-RevId: 277674401
2019-11-05 16:13:33 +00:00
ibaker
f5377d9b11
Encode WebVTT size computation in WebvttCue.java
...
Relevant part of the spec:
https://www.w3.org/TR/webvtt1/#processing-cue-settings
PiperOrigin-RevId: 277523694
2019-11-05 16:13:25 +00:00
ibaker
d29d452617
Switch (Mp4)WebvttDecoderTest to use Truth's Expect
...
This means multiple failures are all logged, instead of the test
stopping when the first assertion fails. Makes tests like this with
lots of independent assertions much easier to work with.
I limited the expect to a single assertCues() call, otherwise
the error message gets very long and is hard to read, but I
still think this is an improvement.
PiperOrigin-RevId: 277523300
2019-11-05 16:13:18 +00:00
ibaker
b3f94e3768
Update WebvttCue to use defaults from the spec
...
Cue's UNSET and null values should be used when the source data
doesn't specify *and* the spec doesn't provide a clear default.
In the WebVTT case, the defaults are clear, so we use them
explicitly.
PiperOrigin-RevId: 277522899
2019-11-05 16:13:10 +00:00