Youtube Video Player

Contents

Plays YouTube videos in Native YouTube App

https://github.com/ihadeed/CordovaYoutubeVideoPlayer

Ionic Youtube Video Player插件的安装(Installation)

ionic cordova plugin add cordova-plugin-youtube-video-player npm install @ionic-native/youtube-video-player

Ionic Youtube Video Player插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Youtube Video Player插件的用法(Usage)

For Android 5.0+ you will need to add the following to config.xml

<preference name="YouTubeDataApiKey" value="[YOUR YOUTUBE API]" />

For more information: https://developers.google.com/youtube/v3/getting-started

import { YoutubeVideoPlayer } from '@ionic-native/youtube-video-player';

constructor(private youtube: YoutubeVideoPlayer) { }

...


this.youtube.openVideo('myvideoid');