提取设置的差异使用YouTube API和Web界面创建直播活动 [英] Difference in Ingestation Settings Creating a Live Event Using YouTube API vs Web Interface

查看:100
本文介绍了提取设置的差异使用YouTube API和Web界面创建直播活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用YouTube API(第2版)从我的应用程序创建直播活动.这些事件已成功创建,但是用户抱怨通过API创建的事件与通过YouTube网站直接创建的事件相比,摄取设置"的可用性有所不同.

I'm using the YouTube API (version 2) to create Live Events from my application. The events are successfully created, but users have complained that the availability of the Ingestation Settings are different for events created through the API compared to events created through the YouTube site directly.

我链接了两张图片以说明差异:

I've linked to two images to illustrate the differences:

第一是设置如何查找通过API创建的事件. 是设置查找通过YouTube网站创建的事件的方式.

The first is how the settings look for an event created through the API. The second is how the settings look for an event created through the YouTube site.

请注意编码器设置的差异.我可以对API调用执行任何操作来获取与第二张图片中的外观相匹配的设置吗?还是这是通过API创建所有事件时总是显示出来的方式?

Note the differences in the encoder settings. Is there anything I can do to the API call to get the settings to match how they look in the second picture? Or is this how all events always appear when created through the API?

以下是对API的调用示例(已编辑授权位):

Here is an example of the call to the API (authorization bits edited):

Authorization: Bearer ************
Accept: application/atom+xml
Content-Type: application/atom+xml
GData-Version: 2
X-GData-Key: key=*********

<entry xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom">
  <title>Test</title>
  <summary>Test</summary>
  <yt:when start="2013-08-14T17:00:00Z" />
  <content type="application/atom+xml">
    <entry>
      <media:group>
        <media:category label="Sports" scheme="http://gdata.youtube.com/schemas/2007/categories.cat" />
      </media:group>
    </entry>
  </content>
</entry>

推荐答案

由于您使用了GDATA(旧的v2)API,因此事件是在旧的v2平台中创建的.

Since you used the GDATA (old, v2) API the events are created in old v2 platform.

在网络中,您似乎选择了在v3(新)平台中使用,因此在新平台中创建了事件.

In web, it looks like you opted in v3 (new) platform so events are created in new platform.

我建议您使用新的实时流API .

或者您也可以在网络中选择退出以使用旧版本.

Or you can opt-out in web too to use old version.

这是一个详细的博客描述API的帖子和我的 Google I/O对话.

这篇关于提取设置的差异使用YouTube API和Web界面创建直播活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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