如何获取youtube live api流密钥
如何绑定YouTube流密钥以匹配以前的视频。 我正试图用java来做这件事,但没有成功如何获取youtube live api流密钥,youtube,youtube-data-api,Youtube,Youtube Data Api,如何绑定YouTube流密钥以匹配以前的视频。 我正试图用java来做这件事,但没有成功 我正在看创建广播流的示例,但它没有相同的键 我以前在这方面得到过帮助。请尝试在谷歌上做一些研究,然后问这个问题。你可以看到。这会像对我一样帮助你 简而言之,这就是我收到的求助代码 归功于@M.Prokhorov YouTube yt = ... // your reference to YouTube String broadcastId = ... // your broadcast Id
我正在看创建广播流的示例,但它没有相同的键 我以前在这方面得到过帮助。请尝试在谷歌上做一些研究,然后问这个问题。你可以看到。这会像对我一样帮助你 简而言之,这就是我收到的求助代码 归功于@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()