I have written a java program that accepts frames from camera using rtsp, creates MPEG2-TS file along with index.m3u8. This ts generation is done by simply adding PATs/PMTs etc. by simple bit level operations(i.e, without using any library like ffmpeg).
I am able to play the index file using ----
hls.js :
Windows(Chrome, firefox is playing pretty good)
Android(firefox is playing fine, but updated chrome is unable to play, it says HLS.js not supported. Once I uninstall the updates of chrome, it can play it)
iOS(safari and chrome can play pretty good)
clappr.js- I think this is a pretty efficient library
Windows(Chrome, firefox is playing pretty good)
Android(Chrome, firefox is playing fine)
iOS(safari and chrome can play pretty good)
VLC plays good in Windows, android and iOS(MAC)
Android Media Player plays good when I integrated it in my android app.
AVPlayer in iOS(MAC/iPhone/iPAD) : It simply cant play the TS !
I am pretty confused and do not know what really the problem is. I think apple has some restrictions on ts (i.e, they need some more data in ts). Can someone help in this regard?
If this information is not enough to solve the problem, please suggest me, I'll provide.