2016-06-16 1 views
0

Videos.insert 및 Videos.update 쿼리에서 3D 차원 플래그를 설정하려고했습니다. 그러나 깃발은 바뀌지 않습니다. 업데이트 쿼리 예 :Youtube API가 차원을 설정합니다

요청 :

PUT https://www.googleapis.com/youtube/v3/videos?part=contentDetails&key={YOUR_API_KEY} 
{ 
"id": "g8X8zeL0uEQ", 
"contentDetails": { 
    "dimension": "3d" 
} 
} 

응답 :

200 
- SHOW HEADERS - 
{ 

"kind": "youtube#video", 
"etag": "\"0Fu6lI6VPLdRMlQU3wwNcowdAUs/fSl6VDWHqWRlQ_1QhmdiESxxFiY\"", 
"id": "g8X8zeL0uEQ", 
"contentDetails": { 
    "duration": "PT7S", 
    "dimension": "2d", 
    "definition": "hd", 
    "caption": "false", 
    "licensedContent": false, 
    "projection": "rectangular" 
} 
} 

답변

0

당신은 동영상의 크기를 플래그를 설정하는 contentDetails.dimension를 사용할 수 있습니다. 동영상이 3D 또는 2D로 제공되는지 여부를 나타냅니다. contentDetails 객체에는 비디오 길이와 비디오에 캡션을 사용할 수 있는지 여부 등 비디오 내용에 대한 정보가 들어 있습니다. 그러나 insertupdate 쿼리는 3D 플래그를 설정할 수 없습니다.

"contentDetails": { 
"duration": string, 
"dimension": string, 
"definition": string, 
"caption": string, 
"licensedContent": boolean, 
"regionRestriction": { 
"allowed": [ 
string 
], 
"blocked": [ 
string 
] 
},