mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Previously any `CuesWithTiming.durationUs` could be `TIME_UNSET`, meaning it should be replaced by the next `CuesWithTiming` instance (instead of being merged if the durations overlap, which is currently the expected behavior for all `CuesWithTiming` with a 'real' duration). This technically allowed a single subtitle track to include a mixture of `CuesWithTiming` that should be merged, and some that should be replaced. This is not actually needed for any of the subtitle formats currently supported by ExoPlayer - in all cases a format expects either all cues to be merged, or each cue to replace the previous one. Supporting this mixture of merging and replacing in `TextRenderer` ended up being very complicated, and it seemed a bit pointless since it's not actually needed. This change means a given subtitle track either merges **all** cues (meaning `CuesWithTiming.durationUs = C.TIME_UNSET` is not allowed), or **every** cue is replaced by the next one (meaning `CuesWithTiming.durationUs` may be set (to allow for cues to 'time out', needed for CEA-608), or may be `TIME_UNSET`). This value will be used in a subsequent change that adds cue-merging support to `TextRenderer`. PiperOrigin-RevId: 565028066 |
||
|---|---|---|
| .. | ||
| cast | ||
| common | ||
| container | ||
| database | ||
| datasource | ||
| datasource_cronet | ||
| datasource_okhttp | ||
| datasource_rtmp | ||
| decoder | ||
| decoder_av1 | ||
| decoder_ffmpeg | ||
| decoder_flac | ||
| decoder_midi | ||
| decoder_opus | ||
| decoder_vp9 | ||
| effect | ||
| exoplayer | ||
| exoplayer_dash | ||
| exoplayer_hls | ||
| exoplayer_ima | ||
| exoplayer_rtsp | ||
| exoplayer_smoothstreaming | ||
| exoplayer_workmanager | ||
| extractor | ||
| muxer | ||
| session | ||
| test_data | ||
| test_exoplayer_playback | ||
| test_session_common | ||
| test_session_current | ||
| test_utils | ||
| test_utils_robolectric | ||
| transformer | ||
| ui | ||
| ui_leanback | ||