FlutterYoutube icon indicating copy to clipboard operation
FlutterYoutube copied to clipboard

This plugin puts the developer in violation of Youtube ToS on iOS

Open MagicalTux opened this issue 6 years ago • 2 comments

This plugin uses https://github.com/0xced/XCDYouTubeKit on iOS, which contains the following warning in its readme:

XCDYouTubeKit is against the YouTube Terms of Service. The only official way of playing a YouTube video inside an app is with a web view and the iframe player API. Unfortunately, this is very slow and quite ugly, so I wrote this player to give users a better viewing experience.

Because this plugin uses the official Youtube player module on android (com.google.android.youtube.player.YouTubePlayer) I had assumed something similar was the case on iOS, and used this plugin with this in mind, however about a week ago, playback broke for many videos (see issue https://github.com/0xced/XCDYouTubeKit/issues/419). Because it is not an officially supported player, this results in both terms of service violation and instability, risks, etc (when you have a live iOS app and it stops working, you can't just push a quick update - it needs to be approved by apple/etc).

While there isn't much that can be done about it, at least a warning should be shown in the README.

MagicalTux avatar Jan 26 '19 15:01 MagicalTux

Sorry for posting here. @MagicalTux thank you, I had the same opinion and I am using WebView to develop my app, any idea on how to handle Secure Origin with Flutter webview, https://stackoverflow.com/questions/54470420/flutter-web-view-secure-origin

skjagini avatar Jan 31 '19 17:01 skjagini

@skjagini why would you use html at all in this? Just remove use of Uri.dataFromString and set initialUrl to your embedding url directly (https://www.youtube.com/embed/vlkNcHDFnGA for example)

MagicalTux avatar Feb 04 '19 22:02 MagicalTux