HTML5 live video Apple iOS -
so far understand it, there no way (yet) play live video streams using html5 video on apple device , have 1-1.5 second latency or less. streaming protocol apple seems support hls , involves dividing video chunks, downloading them 1 one, , having downloaded enough pieces (3 default) start playing it. if each of these pieces 3 seconds long, looking @ 9-10 second latency. reducing length of piece causes constant disruption when streaming , reducing bitrate of video doesn't seem reduce said marker.
is there other viable solution streaming truly live video using html5 on apple mobile devices?
if anybody's wondering - there still hacky workaround avoid using hls @ all.
you can convert video stream sequence of images in mpeg1
format (using ffmpeg example) , download them @ client side using javascript library , use canvas element display them. can achieved using jsmpeg , streaming-server
code runs on node.js
i able 30 fps 540x320
resolution 150ms latency on safari ios.
for precise walk-through see blog .
pros:
- improved latency (with adequate bitrate , resolution)
- html5 compatibility pretty much cross-platform support
cons:
- no audio feed.
- increased cpu usage on handheld devices
Comments
Post a Comment