如何将Ustreamvideoembedded到iOS中
有没有人find一种方法轻松地embedded到iPhone或iPad应用程序的Ustreamvideo? 我已经发送电子邮件到ustream的支持,但没有回应。 我真的不想运行ffmpeg或任何东西。
最简单的方法是使用UIWebView打开embeddedurl(例如http://www.ustream.tv/embed/10638475 )。 这将在iOS上使用HTTP Live Streaming。
或者,您可以使用像http://iphone-streaming.ustream.tv/uhls/10638475/streams/live/iphone/playlist.m3u8这样的URL来启动AVPlayerItem
并使用AVPlayer
和AVPlayerLayer
在应用的用户界面中播放stream(如果你不希望它是全屏幕,非常有用)。
尝试:
<iframe id="UstreamIframe" src="http://www.ustream.tv/embed/10638475"></iframe>