Playing YouTubePlayer Sound in Background Swift

后端 未结 1 1717
一个人的身影
一个人的身影 2021-01-15 17:32

I\'m using the YouTubeSDK to play YouTube videos in my app found here: https://github.com/gilesvangruisen/Swift-YouTube-Player

However, when the user presses home I

相关标签:
1条回答
  • 2021-01-15 18:07

    Separating out the video and audio of a Youtube video is against YouTube Terms of Service. Look under Prohibitions

    1. separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API;

    2. promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API;

    That being said, the workaround still remains the same as explained here or here which both suggest that you need to have a service that delegates the video's playback. Directly, the Youtube API will not allow you to do so.

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