mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

This CL contains integration of the ExoplayerCuesDecoder and the SubtitleExtractor with the player. The SubtitleExtractor is integrated inside the DefaultMediaSourceFactory. The flag was added to the state of the DefaultMediaSourceFactory to let user decide between the ProgressiveMediaSource and the SingleSampleMediaSource as a source for subtitles. Choosing the ProgressiveMediaSource will cause data to flow through the SubtitleExtractor and eventually the ExoplayerCuesDecoder. PiperOrigin-RevId: 394500305