Embedding vimeo player video in IOS


#1

I am trying to display a video hosted in Vimeo and played through their embedded player.
It works fine in Android but in IOS the video doesnt display.

Anyway have any experience with this or thoughts what the issue might be?


#2

Did you figure out what the issue was? I am having the same issue. Or do you have a work around?


#3

Right now I am doing this and seems to be working…hope it helps

  <iframe  width="100%" height="90%"   [src]="safeUrl" 
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
export class VideoPlayer {
    video: PlanVideo = null;
  errorString: string = null;
    safeUrl: any = null;

  constructor(public viewCtrl: ViewController,public toastCtrl: ToastController, public navCtrl: NavController, public user: User, public menu: MenuController,  public platform: Platform,  public sanitizer: DomSanitizer,public navParams: NavParams) {
    
    this.video = navParams.get('video');
    this.safeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.video.link);

  }