I'm trying to create a more generic media controller for several types of streaming media and want to adapt the UI to the type of stream;
- When it's an on-demand file stream (i.e. a single MP3 file that's being streamed), you should be able to seek forward and backward. Thus, the seek slider should be visible.
- When it's a live stream, it isn't possible to seek forward and backward, and thus the seek slider should be hidden.
Is there any way to determine from the AVPlayer (or perhaps the AVPlayerItem or AVAsset) what the type of stream is?