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