google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.7k stars 6.01k forks source link

MPEG-TS: Support PID change during playback #5566

Open ghost0906 opened 5 years ago

ghost0906 commented 5 years ago

I want to use exoplayer to play live broadcast video, the video is mpegts format, and the pid is changing during play. Can exoplayer supported this situation? And is there any way to support this? Need for help.

AquilesCanta commented 5 years ago

Hi @ghost0906, not currently supported, unfortunately.

You'd have to somehow detect the structural change in the TS and reprepare the player, so that it grabs the new track configuration.

In the meantime, I'll use this issue to track broadcast TV support improvement.

ghost0906 commented 5 years ago

Thanks, I'd try solve it as your suggestion.

AquilesCanta commented 5 years ago

Deleted unrelated comment.

lars18th commented 2 years ago

Hi @AquilesCanta ,

In the meantime, I'll use this issue to track broadcast TV support improvement.

Any improvement in supporting broadcast TV streams? With the current implementation when the stream has some errors (CC counter, error flag in TS packet, some small gaps of missing packets, etc.) then the player has some troubles. You have interested on improve this?