media/libraries
ibaker a783d704b2 Add duration to text/x-exoplayer-cues binary format
This plumbs a duration through `SampleQueue` which will make it easier
to handle transcoding muxed subtitles from e.g. SubRip to
`text/x-exoplayer-cues`.

This change is a no-op to the end-to-end behaviour of ExoPlayer because
currently we only support parsing sideloaded subtitles before
`SampleQueue`, and by adding the duration we don't affect the cues that
are ultimately output by `Player.Listener.onCues` (as shown by no change
to the golden files for `WebvttPlaybackTest` in this commit).

I considered making `CuesWithStartTimeAndDuration` implement
`Bundleable` (and deleting `CueEncoder/Decoder`) but decided against
it because we are deliberately not encoding `startTimeUs` (since that's
encoded as the sample time in `SampleQueue`). I also considered
introducing another type that only has `List<Cue>` and `durationUs`
fields, but it didn't seem necessary, since we want `startTimeUs`
everywhere else (except inside `SampleQueue`).

PiperOrigin-RevId: 545226847
2023-07-05 09:14:38 +00:00
..
cast Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
common GL: Print egl errors in hex. 2023-07-05 09:01:36 +00:00
container Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Remove unnecessary final on DefaultHttpDataSource.Factory method 2023-06-29 23:09:14 +00:00
datasource_cronet Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_av1 Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_ffmpeg Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_flac Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_midi Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_opus Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_vp9 Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
effect Effect: Create basic VideoCompositor. 2023-07-05 09:02:45 +00:00
exoplayer Add duration to text/x-exoplayer-cues binary format 2023-07-05 09:14:38 +00:00
exoplayer_dash Merge pull request #487 from vishnuchilakala:allow_unsigned_int_for_adaptation_set_id 2023-07-05 08:53:09 +00:00
exoplayer_hls Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
exoplayer_ima Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
exoplayer_rtsp Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
exoplayer_smoothstreaming Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Add duration to text/x-exoplayer-cues binary format 2023-07-05 09:14:38 +00:00
muxer Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
session Suppress NewApi lint warning on <vector> usage in drawables 2023-07-05 09:08:51 +00:00
test_data Effect: Create basic VideoCompositor. 2023-07-05 09:02:45 +00:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Rollback of 7956c80f73 2023-06-19 16:09:13 +01:00
test_session_current Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
test_utils Test: Fix missed latch exceptions. 2023-07-05 09:09:59 +00:00
test_utils_robolectric Replace deprecated NullableType from checkerframework with our own one 2023-06-19 16:08:20 +01:00
transformer Effect: Create basic VideoCompositor. 2023-07-05 09:02:45 +00:00
ui Resume/Pause on playback suppression changes with timeout. 2023-06-29 23:17:57 +00:00
ui_leanback Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00