# Plugin YoutubeVideoPlayer

**URL:** <https://forum.ionicframework.com/t/plugin-youtubevideoplayer/110946>\
**Category:** Ionic Native\
**Created:** [November 3, 2017, 3:27pm UTC](https://forum.ionicframework.com/t/plugin-youtubevideoplayer/110946 "2017-11-03T15:27:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adsfelipe](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@adsfelipe](https://forum.ionicframework.com/u/adsfelipe)\
**Post date:** [November 3, 2017, 3:27pm UTC](https://forum.ionicframework.com/t/plugin-youtubevideoplayer/110946/1 "2017-11-03T15:27:01Z")

</div>

Hello people…

Im trying to use the native plugin Youtube Video Player and youtube api v3

> **[Ionic Framework](https://ionicframework.com/docs/native/youtube-video-player/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

is working fine… but when a click to open a video… it opens kinda on the youtube…  
i would like to open inside my app…

i dont know what to do now… embbed it in an iframe?  
ther’s a way to open a player inside de app using the native plugin?

```auto
openVideo(videoId: string) {
    if (this.plt.is('cordova')) {
      this.youtube.openVideo(videoId);
    } else {
      window.open('https://www.youtube.com/watch?v=' + videoId);
    }
  }

```

Many thanks!!

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:06pm UTC](https://forum.ionicframework.com/t/plugin-youtubevideoplayer/110946/2 "2021-07-19T22:06:47Z")

</div>


