我已经在使用 youtube api 流式传输实时 VR:
https://developers.google.com/youtube/v3/live/docs/liveBroadcasts#contentDetails.projection
检查对象 Livebroadcast 对象:您可以指定:“矩形”或“360”
NodeJs 示例:
var start_date = new Date(Date.now() + (1000 /*sec*/ * 1 /*min*/ * 1 /*hour*/ * 1 /*day*/ * 1))
var youtube_broadcasts_body = {
snippet: {
"scheduledStartTime": start_date,
"title": "Live from StackOverflow"
},
status: {
"privacyStatus": "unlisted"
},
contentDetails: {
"projection": "360", <-------- this is for VR default is "rectangular"
}
}
var youtube_livebroadcast_params = {
part: "id,snippet,status, contentDetails",
resource: youtube_broadcasts_body
}
youtube.liveBroadcasts.insert(youtube_livebroadcast_params, callback)