player.js icon indicating copy to clipboard operation
player.js copied to clipboard

Ionic Capacitor - embedded private videos

Open ozimovski opened this issue 3 years ago • 10 comments

Expected Behavior

Embedding private videos on hybrid mobile apps

Actual Behavior

Video doesn't load (privacy issues of course)

Question

Is there a way to use vimeo player to embed video with specified domain setting?

ozimovski avatar Mar 07 '21 18:03 ozimovski

I'm having the same issue. The privacy settings is set on a specific domain for my video on vimeo. But as my capacitor host is capacitor://localhost it's not working. Vimeo is not letting me change the protocol part of the host. Capacitor is not letting me use https as protocol for the host.

Do you have any solution?

Thanks a lot,

Gab-Metzger avatar Mar 18 '21 13:03 Gab-Metzger

Sadly, I am still without a good solution.

My dirty fix is to make the video public (via an API) for 0.5 second, display the iframe and then make video private again. Luckily it is not a serious iPhone app, so I can afford a dirty fix.

ozimovski avatar Mar 18 '21 14:03 ozimovski

Not possible for me, I'm not the owner of the vimeo account but one of my customer 😢 I thought of doing the oembed call with the native http plugin to avoid CORS issues and then display the video in an iframe but I don't know if it's possible.

Gab-Metzger avatar Mar 18 '21 14:03 Gab-Metzger

Hey @luwes ! Any idea of how we could manage that using hybrid mobile applications like cordova or capacitor?

Gab-Metzger avatar Mar 26 '21 11:03 Gab-Metzger

Any improvment on this? Any other solution?

bianchinirick avatar Apr 09 '22 20:04 bianchinirick

same here.

const player = new VimeoPlayer(this.target.nativeElement, {
        controls: false,
        id: this.currentVideo.provider.id,
        responsive: true,
        playsinline: true
      });

player.ready() doesn't trigger. screen is empty.

monurakkaya avatar Jun 02 '22 19:06 monurakkaya