Youtube videos not playing in iOS


#1

Just can’t figure out what’s wrong. Youtube videos play in Android no problem, but in iOS nothing happens… Absolutely nothing happens.

Config.xml is in correct format. Tried DomSanitizer, but that did absolutely nothing.

HTML:
<button class = “videoSelect” ion-item *ngFor=“let video of videos; let i = index” (click)=“showVideo(i)” >
Video: {{ video.title }}
</button

TS:
private showVideo(videoID: number){
this.youtube.openVideo(this.videos[videoID].video)
}

When I run ionic serve in DevApp, I get this:

[14:52:26] console.warn: Native: tried calling YoutubeVideoPlayer.openVideo, but the YoutubeVideoPlayer plugin is not
installed.
[14:52:26] console.warn: Install the YoutubeVideoPlayer plugin: ‘ionic cordova plugin add
cordova-plugin-youtube-video-player’

As said, this works in Android. And the plugin IS installed correctly.


#2

Still a problem. Why is ios saying plugin is not installed because it is installed? I have checked everything about a thousend times, but can’t resolve this. Help, please? And yes, also rebuilded (rm / add) platform many times.

cli packages: (C:\Users\janiy\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : not installed

local packages:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : android 6.4.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.0.1
Node              : v8.9.3
npm               : 5.5.1
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Program Files\android_sdk\

Misc:

backend : legacy

#3

This is kind of solved. I found out, that the video that I (we) were trying to play, works in Android, but not in iOS for what ever reason probably an issue in youtube settings maybe? When I tried another video, it works in iOS too.

Does anyone have an idea, why our video won’t work on iOS? Is there some settings or something in Youtube, that makes it fail on iOS?


#4

Did you make any progress on this? I am hitting the same issue and I cant debug it at all. If you solved this you will be a life saver/


#5

No we didn’t. We tried changing all the settings of the video in youtube, purged all metadata and even tried to change video format, but still it won’t go thru the youtubevideoplayer -plugin… Plays fine on the “real” youtube. This plugin really, REALLY needs updating, but I’m not holding me breath about it.


#6

I also tried everything good to know this is confirmed.