“发起环聊直播" YouTube LiveStreaming API的按钮 [英] "Start a Hangout on Air" button for Youtube LiveStreaming API

查看:120
本文介绍了“发起环聊直播" YouTube LiveStreaming API的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在使用尚未被弃用的发起环聊直播"按钮:

We've been using the as yet un-deprecated "Start a Hangout on Air" button:

https://developers.google.com/+/hangouts/button

几年来在我们的网站 http://agileventures.org 上开始进行环聊.完整的源代码位于 http://github.com/AgileVentures/WebsiteOne

to start hangouts on air on our site http://agileventures.org for several years now. Full source code at http://github.com/AgileVentures/WebsiteOne

在过去的24小时内,点击这些按钮现在会重定向到手动启动youtube直播活动的说明:

In the last 24 hours, clicking those buttons now redirects to instructions to manually start a youtube live event:

https://support.google.com/youtube/answer/7083786?visit_id=1-636118907663120157-3101666316&p=live_hoa&hl=zh-CN&rd=1

这是一个问题,因为手动启动的活动不会创建可让我们的社区知道活动即将开始并为我们提供重要事件遥测功能的视频群聊应用.

This is a problem as manually started events will not create the hangout app that lets our community know an event is starting and provides us with important telemetry on events.

很遗憾,youtube实时流API中没有有关如何创建将创建youtube实时流事件或将插件加载到该事件的按钮的文档:

There is unfortunately no documentation in the youtube live streaming API about how to create a button that will create a youtube live streaming event, or load a plugin into that event:

https://developers.google.com/youtube/v3/live/docs/

我们需要一些类似于hangouts api提供的代码,例如

We need some code similar to that provided by the hangouts api, e.g.

<script src="https://apis.google.com/js/platform.js" async defer>
</script> 
<div class="g-hangout" data-render="createhangout"
     data-initial_apps="[{ app_id : '123456789012', start_data : 'dQw4w9WgXcQ', 'app_type' : 'ROOM_APP' }]"> 
 </div>

,但它将与新的youtube流API一起使用.有什么想法吗?

but that will work with the new youtube streaming api. Any ideas?

YouTube实时文档讨论了能够创建广播的问题,但这似乎仅用于自定义流式"广播而不是视频群聊:

The YouTube live documentation talks about being able to create a broadcast, but it seems to be only for custom "streaming" broadcasts and not hangouts:

https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/insert

新的活动页面允许我们选择快速"类型,该类型会创建一个环聊直播( https://www.youtube.com/my_live_events?action_create_live_event=1 ),以便我们可以手动创建HOA,而不能以编程方式创建?我们非常感谢Google对此的澄清.

The new events page allows us to select the "quick" type, which creates a hangout on air (https://www.youtube.com/my_live_events?action_create_live_event=1) so we can create HOAs manually, but not programmatically? We would very much appreciate clarity from Google on this.

似乎已经放弃了对空中按钮环聊",通过API创建HOA的支持,不是吗?

It seems that support for Hangout on Air Buttons, creation of HOAs via API has been dropped no?

请注意,Google特别要求将有关Youtube LiveStream API的支持问题发布到StackOverflow:

Note that Google is specifically requesting support questions for the Youtube LiveStream API are posted to StackOverflow:

https://developers.google.com/youtube/v3/live/support

推荐答案

功能在休息3周后又重新开始工作.我们不确定Google是否更改了任何内容.我们这边没有任何变化.在过去的两个月左右的时间内,用于启动HOA的按钮一直保持稳定...

The functionality all started working again after a 3 week break. We're not sure if Google changed anything. There were no changes on our end. Buttons for starting HOA's have been stable now for the last two months or so ...

这篇关于“发起环聊直播" YouTube LiveStreaming API的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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