开发者

Live streaming on iPhone

开发者 https://www.devze.com 2023-02-23 05:57 出处:网络
I jus开发者_如何学Got 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

I jus开发者_如何学Got 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.


You have to go through HTTP Live streaming document provided by Apple.There are some sample live streaming URLs.The file extension will be .m3u8.If you want to configure your own webwserver , you have to configure FFMPEG server in your webserver.The links which will help you 1)Apple document 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.


Apple has some nice resources on Http Live Streaming.

0

精彩评论

暂无评论...
验证码 换一张
取 消