Вопрос

i try to save .m3u8 & .ts file on local ,then using AVplayer to play it, but player always loading fail. Have any way to play it , or i have to set small http server on device to put the file then play it?

Thanks all

Это было полезно?

Решение

Yes, you'll need to setup a http server to server the file. check cocoahttpserver

Or, you can try to convert the .ts file to .mp4, with TS2MP4

I personally suggest using CocoaHttpServer, it's just simple.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top