如何将Ustream视频嵌入到iOS中 [英] How to Embed Ustream video into iOS

查看:82
本文介绍了如何将Ustream视频嵌入到iOS中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人找到一种方法可以轻松地将ustream视频嵌入到iphone或ipad应用中?我已经向ustream支持发送了电子邮件,但没有回复。我真的不想通过ffmpeg或其他任何东西。

Has anyone found a way to easily embed ustream video within a iphone or ipad app? I have sent emails to the ustream support, but no response. I really dont want to run through ffmpeg or anything.

推荐答案

最简单的方法是打开嵌入URL(例如 http://www.ustream.tv/embed/10638475 )使用UIWebView。这将在iOS上使用HTTP Live Streaming。

The easiest way is by just opening the embed URL (e.g. http://www.ustream.tv/embed/10638475) using a UIWebView. This will use HTTP Live Streaming on iOS.

或者你可以使用像 http://iphone-streaming.ustream.tv/uhls/10638475/streams/live/iphone/playlist.m3u8 启动 AVPlayerItem 并使用 AVPlayer AVPlayerLayer 播放流在应用程序的UI中(如果你不希望它是全屏的话非常有用)。

Alternatively you can use a URL like http://iphone-streaming.ustream.tv/uhls/10638475/streams/live/iphone/playlist.m3u8 to initiate an AVPlayerItem and use an AVPlayer and AVPlayerLayer to play the stream within the app's UI (very useful if you don't want it to be full screen).

这篇关于如何将Ustream视频嵌入到iOS中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆