简体   繁体   中英

Live streaming on iPhone

I just started work on live streaming on iPhone. So any help of how to do live streming in iPhone. I think if I can add video tag in HTML5 and then load that html in UIWebView will work. Am I right? If not what is your sugestion to do live streaming. I want to embed some news channel live streaming link in the application so from where I can find those links.

您必须阅读Apple提供的HTTP Live流文档,其中有一些示例实时流URL,文件扩展名为.m3u8。如果要配置自己的Web服务器,则必须在Web服务器中配置FFMPEG服务器。这将为您提供帮助1) Apple文档 2) stackoverflow 3) stackoverflow 4) stackoverflow

If you're making a web app in html5 then the video tag is a good choice.

But, If you're developing a native app then MPMoviePlayerController would be a much better choice. There are many example of how to use it online.

iOS doesn't support RTMP or RSTP, so your stream would need to be a HTTP Live stream. From memory the codec choice is very limited too, eg if you supply H264+mp3 you won't get any sound despite iOS supporting mp3.

Also remember that streams from other people (such as the BBC) will normally be protected by international copyright law, so unless you have prior permission to use their stream in your app you may be breaking the law.

苹果在Http Live Streaming上有一些不错的资源。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM