Displaying YouTube Video ads with YouTube iFrame

前端 未结 1 1715
太阳男子
太阳男子 2020-12-06 19:02

I\'m currently developing an iOS app that displays my YouTube videos, I am a YouTube partner and video ads show up when I play my videos inside my browser. However while usi

相关标签:
1条回答
  • 2020-12-06 19:21

    When the YTPlayerView iFrame loaded an ad, it used to force the user right out of their app and into Safari. I had opened an issue on the library's GitHub project page back in January and there was a discussion about it on StackOverflow here: Bug in 'YouTube iOS Player Helper' library.

    Ultimately, iFrame ads were disabled in PR #58. This was sanctioned by Ibrahim Ulukaya, a member of YouTube's developer relations team.

    With iFrame API subject to deprecation at any time, I wouldn't be surprised of YouTube was working on a better library for iOS, similar to the one they have for Android. But for now, ads will not show up in the YTPlayerView.

    0 讨论(0)
提交回复
热议问题