如何获得 YouTube 直播 api 直播码
how to get youtube live api stream key
如何绑定我的 YouTube 流密钥以匹配以前的视频。
我正在尝试使用 java 来执行此操作,但找不到任何地方。
我正在查看创建广播流的示例,但它没有保持相同的密钥。
我以前在这方面得到过帮助。请尝试对 Google 进行一些研究,然后提出问题。可以看到。这会像对我一样帮助你。
简而言之,这是我收到的求助代码。
Credit to @M. Prokhorov
YouTube yt = ... // your reference to YouTube
String broadcastId = ... // your broadcast Id
String newStreamId = ... // identifier of stream you want to bind
String apiKEy = ... // your API key
// you can define other response parts if you want more or don't want some of these
String responseParts = "id,status,contentDetails.boundStreamId";
yt.liveBroadcasts().bind(broadcastId, responseParts)
.setApiKey(apiKey)
.setStreamId(streamId)
// other data you might want in request
.execute()
如何绑定我的 YouTube 流密钥以匹配以前的视频。 我正在尝试使用 java 来执行此操作,但找不到任何地方。
我正在查看创建广播流的示例,但它没有保持相同的密钥。
我以前在这方面得到过帮助。请尝试对 Google 进行一些研究,然后提出问题。可以看到
简而言之,这是我收到的求助代码。
Credit to @M. Prokhorov
YouTube yt = ... // your reference to YouTube
String broadcastId = ... // your broadcast Id
String newStreamId = ... // identifier of stream you want to bind
String apiKEy = ... // your API key
// you can define other response parts if you want more or don't want some of these
String responseParts = "id,status,contentDetails.boundStreamId";
yt.liveBroadcasts().bind(broadcastId, responseParts)
.setApiKey(apiKey)
.setStreamId(streamId)
// other data you might want in request
.execute()