sukov / CachingPlayerItem

An AVPlayerItem subclass that lets you stream and cache media content on iOS
MIT License
75 stars 19 forks source link

mux.com integration #16

Closed drsounds closed 2 months ago

drsounds commented 2 months ago

I am trying to use this with my app that consumes m3u video streams from mux.com but it doesn't work

CachingPlayerItem status: failed with error: Optional(Error Domain=NSURLErrorDomain Code=-1008 "resource unavailable"

With regular AVPlayerItem it works as usual

sukov commented 2 months ago

Hello @drsounds. Unfortunately M3U8 is not currently supported as it requires a local proxy server for playing the downloaded media. You are welcome to contribute with adding that functionality to this repo. Meanwhile here is a library that serves for that https://github.com/WillieWangWei/WLM3U.