- 05 Nov, 2019 1 commit
-
-
PiperOrigin-RevId: 277462799
andrewlewis committed
-
- 30 Oct, 2019 39 commits
-
-
The framework opus decoder discards some samples after a call to flush(). Because we flush a decoder that is being retained across an input format change, this means that the start of audio gets truncated when transitioning to a new opus stream. See also https://android.googlesource.com/platform/frameworks/av/+/refs/heads/android10-release/media/libstagefright/codecs/opus/dec/SoftOpus.cpp. Avoid this by recreating opus decoders instead of flushing them. It seems fine to do this for all opus decoders as reinitialization should be cheap, OEM-provided implementations may also discard samples and playback shouldn't be interrupted on reinitialization due to the downstream AudioTrack buffer. PiperOrigin-RevId: 277458759
andrewlewis committed -
The nested ternary is quite hard to read imo, and I believe this is a no-op change that captures the intent more clearly. PiperOrigin-RevId: 277320461
ibaker committed -
The demo app was using this via its dependency on the material library, but it's preferable to list dependencies explicitly (otherwise the build would break if we removed the material dependency). PiperOrigin-RevId: 277316175
andrewlewis committed -
PiperOrigin-RevId: 277259448
aquilescanta committed -
Which ensures both get updated when the MediaSessionConnector player changes. Issue:#6582 PiperOrigin-RevId: 277254889
aquilescanta committed -
PiperOrigin-RevId: 277253308
aquilescanta committed -
This helps get HlsMediaPeriod off the blacklist. PiperOrigin-RevId: 277076633
ibaker committed -
Update it to throw if hasNext() is false, to match Java's Iterator interface. This also simplifies the null-checking annotations required PiperOrigin-RevId: 277059766
ibaker committed -
PiperOrigin-RevId: 277057328
aquilescanta committed -
PiperOrigin-RevId: 277056574
aquilescanta committed -
The leanback library doesn't know about non-square pixels. So if we're playing content that uses non-square pixels, we need to adjust the video dimensions that we provide to leanback such that it renders the video with the correct aspect ratio. PiperOrigin-RevId: 277042560
olly committed -
Also remove it from all tests, these aren't covered by the null-checker Covered by the following package-info.java files: - j/c/g/a/exoplayer2/ext/mediasession/package-info.java - j/c/g/a/exoplayer2/package-info.java - j/c/g/a/exoplayer2/offline/package-info.java - j/c/g/a/exoplayer2/video/package-info.java - j/c/g/a/exoplayer2/ui/package-info.java PiperOrigin-RevId: 277038916
ibaker committed -
Also add unit tests for SampleQueue read for samples with DRM requirements. PiperOrigin-RevId: 277037826
aquilescanta committed -
PiperOrigin-RevId: 277030401
samrobinson committed -
PiperOrigin-RevId: 276679790
samrobinson committed -
https://github.com/google/ExoPlayer/commit/665627c3843ebf7a83e62e2f01f9e663a1dad32e
*** Original commit *** Rollback of https://github.com/google/ExoPlayer/commit/bf01ff0f60930427cb8a31e88fcad009d89132cc *** Original commit *** Use Float.NaN for Cue#DIMEN_UNSET Float.MIN_VALUE is very close to zero: "A constant holding the smallest positive nonzero value of type float" https://developer.android.com/reference/java/lang/Float.html#MIN_VALUE Float.NaN more clearly conveys this is an invalid number, and will also more clearly carry over if we do maths on it a... *** PiperOrigin-RevId: 276674142
ibaker committed -
PiperOrigin-RevId: 276673410
samrobinson committed -
PiperOrigin-RevId: 276671167
ibaker committed -
PiperOrigin-RevId: 276660235
aquilescanta committed -
Prevents access of fields before initialization. Also set remoteMediaClient in the constructor by using setRemoteMediaClient instead of assigning the field directly, which will (if possible) pull the state of the receiver in the constructor. PiperOrigin-RevId: 276660004
aquilescanta committed -
PiperOrigin-RevId: 276491102
samrobinson committed -
Everyone should use the Builder. PiperOrigin-RevId: 276468354
ibaker committed -
Otherwise, it will be a build error once we turn on the error. Sponge: https://sponge.corp.google.com/target?id=8e88bd90-a716-40f7-9599-b70e9193b297&target=//third_party/java_src/android_libs/exoplayer/v2/extensions/flac/src/main:binary. PiperOrigin-RevId: 276461029
olly committed -
PiperOrigin-RevId: 276452333
samrobinson committed -
Also change the type of endTime to long to match startTime PiperOrigin-RevId: 276448131
ibaker committed -
PiperOrigin-RevId: 276366002
tonihei committed -
https://github.com/google/ExoPlayer/commit/bf01ff0f60930427cb8a31e88fcad009d89132cc
*** Original commit *** Use Float.NaN for Cue#DIMEN_UNSET Float.MIN_VALUE is very close to zero: "A constant holding the smallest positive nonzero value of type float" https://developer.android.com/reference/java/lang/Float.html#MIN_VALUE Float.NaN more clearly conveys this is an invalid number, and will also more clearly carry over if we do maths on it accidentally. *** PiperOrigin-RevId: 276315786
olly committed -
Float.MIN_VALUE is very close to zero: "A constant holding the smallest positive nonzero value of type float" https://developer.android.com/reference/java/lang/Float.html#MIN_VALUE Float.NaN more clearly conveys this is an invalid number, and will also more clearly carry over if we do maths on it accidentally. PiperOrigin-RevId: 276277784
ibaker committed -
PiperOrigin-RevId: 276084113
samrobinson committed -
PiperOrigin-RevId: 276036585
samrobinson committed -
PiperOrigin-RevId: 276035838
aquilescanta committed -
Without this, a subtitle track empty edit list used to offset the start of subtitles is ignored. Also the current code seems to depend on the order in which we parse the tracks (audio first means we have gapless info when we parse video track, while video first we wouldn't). It's not clear why we can't handle both edit lists & gapless info PiperOrigin-RevId: 276029744
ibaker committed -
PiperOrigin-RevId: 276024935
andrewlewis committed -
Pull it into a top-level package private class at the same time As suggested in https://github.com/google/ExoPlayer/commit/0ba91811d146e14b6bb814d15c8bb3e09011aa79 PiperOrigin-RevId: 275870515
ibaker committed -
PiperOrigin-RevId: 275869409
olly committed -
PiperOrigin-RevId: 275863101
aquilescanta committed -
PiperOrigin-RevId: 275856697
olly committed -
ISSUE: #6550 PiperOrigin-RevId: 275842161
bachinger committed
-