Is there a Youtube 360 ​​API

I would like to configure a javascript listener on an iframe youtube 360 ​​video player that will capture the pan / tilt coordinates of a rotating 360 panorama.

Does anyone know if this is possible or some kind of documentation for the youtube 360 ​​player api? I could not find anyone.

+4
source share
2 answers

The ability to read pan / tilt coordinates is currently not supported. The documentation does not mention 360-degree video players. I submitted an improvement request for this feature.

+2
source

youtube api live 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) 
0

Source: https://habr.com/ru/post/1606810/


All Articles