YouTube直播iOS? [英] YouTube live on iOS?

查看:194
本文介绍了YouTube直播iOS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的文档有点难以解析。我想知道是否有办法

The docs are a little hard to parse here. I was wondering if there was any way to


  1. 将YouTube直播流入iOS应用,没有重要/任何YouTube品牌。

  2. 将来自 iOS设备的流作为YouTube直播的广播流。

  1. Stream YouTube live into an iOS app, without significant/any YouTube branding.
  2. Stream from an iOS device as a broadcast stream for YouTube live.

我最初的谷歌搜索出现了混合的反应。如果可能的话,我希望看到一个这样的例子,或者如果不是这样的话可以节省一些时间。

My initial Googling turned up mixed responses. I was hoping to see an example of this if it's possible, or save myself some time if it's not.

假设我在Verizon旁边有一个ATT旁边的人流媒体内容,我希望两者都显示为来回切换的单个不间断流。 YouTube或图书馆是否可以做任何事情来促进这一点?

Suppose I have a person on ATT next to a person on Verizon streaming content, and I want to make both appear as a single uninterrupted stream switching back and forth. Does YouTube or a library do to anything to facilitate this?

推荐答案

从iOS设备流式传输与从其他设备流式传输没有什么不同设备。您必须编写h264编码器和RTMP打包器,并将视频发送到您的YouTube 对象的 ingestionAddress 。概述超出上述范围的编码器细节对于Stack Overflow而言过于宽泛,但我强烈建议您查看 VideoCore iOS项目。

Streaming from an iOS device is no different than streaming from any other device. You would have to write an h264 encoder and RTMP packetizer, and send the video to your YouTube stream object's ingestionAddress. Outlining the details of the encoder beyond the above is too broad for Stack Overflow, but I highly recommend looking at the VideoCore iOS project.

就品牌推广而言,在不破坏YouTube服务条款的情况下在iOS应用中播放YouTube内容的唯一方法是播放视频a UIWebView 或YouTube的 iOS播放器助手库(这只是一个带有一些播放界面的网页视图)。

As far as branding goes, the only way to play back YouTube content in an iOS app without breaking YouTube's terms of service is to play the video in a UIWebView or YouTube's iOS player helper library (which is just a web view with some playback interfaces).

无法从IFrame播放器中完全删除YouTube品牌。但是,您可以使用播放器上的 modestBranding 标记来切换品牌选项。请参阅IFrame文档此处

There is no way to completely remove YouTube branding from the IFrame player. However, there are branding options you can toggle using the modestBranding flag on the player. See the IFrame docs here.

这篇关于YouTube直播iOS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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