christosts
21f3fa9f7c
Add contract test for DataSchemeDataSource
...
PiperOrigin-RevId: 352558063
2021-01-19 19:23:40 +00:00
christosts
c808751009
Add contract tests for OkHttpDataSource
...
PiperOrigin-RevId: 352554949
2021-01-19 19:23:31 +00:00
andrewlewis
60f000c8b1
Remove incorrect TODOs
...
PiperOrigin-RevId: 352552961
2021-01-19 19:23:23 +00:00
krocard
dc1842efb9
Convert back code to link
...
The code is no longer in common so can directly link to Player.
PiperOrigin-RevId: 352548323
2021-01-19 19:23:14 +00:00
christosts
0b2bc60b1a
Add contract test for AssetDataSource
...
PiperOrigin-RevId: 352532853
2021-01-19 19:23:05 +00:00
christosts
f1506970aa
Add contract test for ByteArrayDataSource
...
PiperOrigin-RevId: 352530806
2021-01-19 19:22:56 +00:00
ibaker
fc952bfba2
Annotate log methods with @Pure
...
PiperOrigin-RevId: 352519583
2021-01-19 19:22:47 +00:00
Oliver Woodman
0c22810a7b
Merge pull request #8459 from WonderzGmbH:fix/8253-cache-exception
...
PiperOrigin-RevId: 352450607
2021-01-18 22:00:46 +00:00
andrewlewis
981826555c
Add support for playing JPEG motion photos
...
PiperOrigin-RevId: 352413375
2021-01-18 22:00:36 +00:00
olly
4359016145
Fix disabling of bypass
...
PiperOrigin-RevId: 352403189
2021-01-18 22:00:28 +00:00
samrobinson
1be4960464
Implement a segment based speed provider and interface.
...
PiperOrigin-RevId: 352401836
2021-01-18 22:00:19 +00:00
samrobinson
dedf60713d
Enforce stricter SlowMotionData and Segment initialisation checks.
...
PiperOrigin-RevId: 352389366
2021-01-18 22:00:11 +00:00
ibaker
4cfb3aff8f
Drop responses in DefaultDrmSession if the session has been released
...
This prevents trying to post the response to possibly dead threads,
which causes an IllegalStateException to be logged.
Issue: #8328
PiperOrigin-RevId: 352388155
2021-01-18 22:00:03 +00:00
christosts
61cf97a0c0
Add contract test for CacheDataSource
...
PiperOrigin-RevId: 352385310
2021-01-18 21:59:54 +00:00
Oliver Woodman
1095f5fc3e
Merge pull request #8437 from equeim:interlaced
...
PiperOrigin-RevId: 352357712
2021-01-18 21:59:35 +00:00
aquilescanta
08132656c9
Make SampleDataQueue methods that read data static
...
Non-functional change which makes it easier to read sample data without altering
the read position.
PiperOrigin-RevId: 352323477
2021-01-18 21:59:24 +00:00
kimvde
9faa393a15
Handle sample size mismatch in MP4 extractors
...
#minor-release
PiperOrigin-RevId: 352016698
2021-01-17 21:51:30 +00:00
andrewlewis
e869d5dbf9
Update requested content position for ads on seek
...
PiperOrigin-RevId: 352011053
2021-01-17 21:51:21 +00:00
christosts
d4a84b88b5
Remove deprecated method setMinLoadableRetryCount().
...
Remove setMinLoadableRetryCount() from SingleSampleMediaSource,
DashMediaSource, HlsMediaSource and SsMediaSource factories.
PiperOrigin-RevId: 352008657
2021-01-17 21:51:13 +00:00
tonihei
68fd23a967
Add option to set preferred audio role flags in DefaultTrackSelector
...
We already have the eequivalent option for text tracks.
PiperOrigin-RevId: 351999287
2021-01-17 21:51:04 +00:00
christosts
3879a485b7
Remove FixedTrackSelection.Factory
...
PiperOrigin-RevId: 351978954
2021-01-17 21:50:37 +00:00
samrobinson
4270d97fc5
Decode and encode audio in TransformerAudioRenderer.
...
There is no speed adjustment or use of sonic, as that will
come in a child CL.
PiperOrigin-RevId: 351973892
2021-01-17 21:50:27 +00:00
Artem Chepurnoy
c1501a3c6a
Double-check that the cache directory does not exist and is a directory
2021-01-15 18:30:36 +02:00
ibaker
f076080434
Default SingleSampleMediaSource.treatLoadErrorsAsEndOfStream
to true
...
Issue: #8430
PiperOrigin-RevId: 351971671
2021-01-15 10:58:08 +00:00
olly
464f53373a
Remove deprecated debug listener methods from SimpleExoPlayer
...
- Once the ability to add debug listeners is removed, analyticsCollector
is the only component that needs to receive the events. Hence it is
called directly.
- It seemed less confusing to do the same thing for (non-debug) video and
audio events, and to have AnalyticsCollector no longer implement
VideoListener and AudioListener directly. This clears up confusion that
arises as a result of the debug and non-debug interfaces defining the
same methods in some cases, and having to be careful not to end up
calling the corresponding AnalyticsCollector method twice.
PiperOrigin-RevId: 351835491
2021-01-15 10:57:47 +00:00
christosts
fa94fba2cb
Remove ExtractorMediaSource.setMinLoadableRetryCount()
...
PiperOrigin-RevId: 351815772
2021-01-15 10:57:37 +00:00
christosts
4e40a03ac9
Remove interface SimpleExoPlayer.VideoListener
...
PiperOrigin-RevId: 351808884
2021-01-15 10:57:27 +00:00
christosts
d9e0b91be7
Remove deprecated Player.setAudioAttributes()
...
PiperOrigin-RevId: 351800287
2021-01-15 10:57:17 +00:00
christosts
a1bb89d90d
Remove DefaultAnalyticsListener
...
PiperOrigin-RevId: 351782634
2021-01-15 10:57:07 +00:00
christosts
eb71d730cb
Remove SingleSampleMediaSource.EventListener and constructors
...
They have been deprecated since r2.7.0
PiperOrigin-RevId: 351777769
2021-01-15 10:56:57 +00:00
kimvde
4c3f580b0c
Rollback of 7d847a9552
...
*** Original commit ***
Handle sample size mismatch in MP4 extractors
#minor-release
***
PiperOrigin-RevId: 351774860
2021-01-15 10:56:47 +00:00
olly
8045c62d09
Fully document ExoMediaDrm
...
PiperOrigin-RevId: 351771497
2021-01-15 10:56:37 +00:00
tonihei
3c4a976a41
Clean up subclassing behaviour of AnalyticsCollector.
...
AnalyticsCollector is allowed to be subclassed to simplify adding
new events that make use of the EventTime generation.
Clean up the subclassing interface to simplify this:
- Make generateCurrentPlayerMediaPeriodEventTime protected. This is
arguably the most useful method for extended clients. Other
generateXXXEventTime methods are left private as they can't be
useful for extensions because they require some integration into
the ExoPlayer playback thread to make sense. So keeping them
private to cause less confusion.
- Some existing callback handling should be final as all the others.
- Adding @CallSuper to all lifecycle management methods that might
be helpful to subclasses but require to call the super method.
- Make sendEvent protected to let subclasses use the simple
event sending method.
PiperOrigin-RevId: 351766369
2021-01-15 10:56:27 +00:00
kimvde
7d847a9552
Handle sample size mismatch in MP4 extractors
...
#minor-release
PiperOrigin-RevId: 351756333
2021-01-15 10:56:17 +00:00
andrewlewis
9b062053fa
Add support for JPEG motion photo extraction
...
PiperOrigin-RevId: 351752989
2021-01-15 10:56:07 +00:00
krocard
789a211d53
Remove VideoDecoderOutputBufferRenderer from Player interface
...
The VideoDecoderOutputBufferRenderer will be set
automatically when setVideoSurfaceView is called on a
VideoDecoderGLSurfaceView.
#player-to-common
PiperOrigin-RevId: 351742601
2021-01-15 10:55:56 +00:00
olly
6084a552a9
Rename AnalyticsListener.onAudioSessionId for consistency
...
PiperOrigin-RevId: 351687086
2021-01-15 10:55:46 +00:00
olly
adb9dcb43f
Add KeyRequest.getRequestType
...
Issue: #7847
PiperOrigin-RevId: 351661084
2021-01-15 10:55:36 +00:00
christosts
b5a319dc4e
Remove deprecated methods from SimpleExoPlayer
...
Remove SimpleExoPlayer methods:
- setTextOutput
- clearTextOutput
- setMetadataOutput
- clearMetadataOutput
The methods were deprecated in r2.6.0.
PiperOrigin-RevId: 351611289
2021-01-15 10:55:26 +00:00
olly
9198dd6f5a
Update AudioListener to reflect new audio session ID logic
...
PiperOrigin-RevId: 351597144
2021-01-15 10:55:16 +00:00
christosts
73114e3987
Remove deprecated method DrmInitData.get(UUID)
...
PiperOrigin-RevId: 351589689
2021-01-15 10:55:06 +00:00
andrewlewis
d5124e8cdc
Add presentation time to motion photo metadata
...
PiperOrigin-RevId: 351581997
2021-01-15 10:54:56 +00:00
claincly
421aa9df40
Added a test-only method to clear the clearDecoderInfosCache.
...
The cache, being static, is updated every time a new MimeType is encountered.
The static cache needs to be cleared between tests that register codecs through
ShadowMediaCodec, or the subsequent tests could possibly pick up a wrong codec.
PiperOrigin-RevId: 351576018
2021-01-15 10:54:45 +00:00
christosts
bdc2a4e3af
Remove deprecated methods from SimpleExoPlayer
...
Remove methods:
- SimpleExoPlayer.setPlaybackParams, deprecated since r2.4.0.
- SimpleExoPlayer.setAudioStreamType, deprecated since r2.5.0.
- SimpleExoPlayer.getAudioStreamType, deprecated since r2.5.0.
PiperOrigin-RevId: 351570070
2021-01-15 10:54:34 +00:00
christosts
dde0b9b614
Remove setVideoDebugListener and setAudioDebugListener
...
PiperOrigin-RevId: 351565147
2021-01-13 13:52:20 +00:00
aquilescanta
03ebc5b52f
Move readPosition modification out of readSampleMetadata
...
Preparation CL for SampleQueue.peek.
PiperOrigin-RevId: 351439887
2021-01-13 00:04:23 +00:00
olly
69423bc2b4
Remove deprecated MappingTrackSelector methods
...
PiperOrigin-RevId: 351400274
2021-01-13 00:04:15 +00:00
christosts
a9cdb4ca06
Remove deprecated methods from SimpleExoPlayer
...
PiperOrigin-RevId: 351375479
2021-01-13 00:03:58 +00:00
christosts
969b6468d9
Remove deprecated method from DefaultEventListener
...
PiperOrigin-RevId: 351367833
2021-01-13 00:03:49 +00:00
olly
b688600b45
Remove deprecated PlayerView methods
...
PiperOrigin-RevId: 351365762
2021-01-13 00:03:41 +00:00