Playback restricted on iOS for VEVO videos from YouTube API

后端 未结 3 1579
情书的邮戳
情书的邮戳 2021-02-20 11:14

I have embedded videos (pulled from YouTube API v3) into my iPhone app using a UIWebView as suggested. The problem is that some videos, such as those from VEVO, produce the fol

3条回答
  •  滥情空心
    2021-02-20 11:38

    Are you getting the error on all videos from VEVO? Are you sure the video you're trying to play is embeddable? Add the 'videoEmbeddable' parameter with the 'true' value so you're only working with videos you can embed.

    The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded into a webpage. If you specify a value for this parameter, you must also set the type parameter's value to video.

    Acceptable values are: any – Return all videos, embeddable or not. true – Only retrieve embeddable videos.

    source: https://developers.google.com/youtube/v3/docs/search/list#videoEmbeddable

提交回复
热议问题