RTMP stream on iOS [closed]

安稳与你 提交于 2019-11-28 18:23:58

I'm pretty sure mediastreamsegmenter can be set up for slightly lower latencies (perhaps as low as 3 seconds).

Any other solution would need an advanced-ish transport, demux and video codec, that can handle RTP-over-HTTP and something at least equal to MPEG-2 video in compression efficiency. Those things are hard to come by for free (I know of only GPL-encumbered ones).

And even those would have latencies of at least 1 second as far as I can tell.

ehud

The closest thing is iPhone RTMP Library at : http://www.aftek.com/afteklab/aftek-iphone-RTMP-library.shtml but it wont support video publishing yet.

I've successfully used rtmpdump for streaming on iOS. You would have to implement the audio/video message decode as the code does not provide that. Also AMF3 is not fully implemented so you might have to deal with that too. For the most part it's just the rtmp.c file. The handleInvoke and handleCtrl methods is where the action is, along with the method that handles the packet (forgot which it is).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!