Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top