有没有人找到在 iphone 或 ipad 应用程序中轻松嵌入 ustream 视频的方法?我已向 ustream 支持发送电子邮件,但没有回复。我真的不想运行 ffmpeg 或任何东西。
最佳答案
最简单的方法是使用 UIWebView 打开嵌入 URL(例如 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
在应用程序的 UI 中播放流(如果您不希望它播放,则非常有用)全屏)。
关于ios - 如何将 Ustream 视频嵌入 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7321334/