diff --git a/package.json b/package.json index 2bdb51d..f89a208 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-youtube-video-player", - "version": "2.4.0", + "version": "2.4.2", "description": "**Play Youtube Videos in a native Video Player on Android & iOS.**", "main": "index.js", "scripts": { diff --git a/platforms/android/src/com/bunkerpalace/cordova/YoutubeVideoPlayer.java b/platforms/android/src/com/bunkerpalace/cordova/YoutubeVideoPlayer.java index de5a1d0..ec8688f 100644 --- a/platforms/android/src/com/bunkerpalace/cordova/YoutubeVideoPlayer.java +++ b/platforms/android/src/com/bunkerpalace/cordova/YoutubeVideoPlayer.java @@ -57,7 +57,7 @@ private Intent createYoutubeIntent(String videoId) { if(YouTubeIntents.canResolvePlayVideoIntentWithOptions(cordovaContext)){ intent = YouTubeIntents.createPlayVideoIntentWithOptions(cordovaContext, videoId, true, true); } else { - intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=" + videoId), cordovaContext, YouTubeActivity.class); + intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.youtube-nocookie.com/embed/" + videoId), cordovaContext, YouTubeActivity.class); intent.putExtra("videoId", videoId); ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(cordovaContext); diff --git a/plugin.xml b/plugin.xml index 93f21b2..d0e6461 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,6 +1,6 @@ - + CordovaYoutubeVideoPlayer @@ -57,7 +57,7 @@ - +