Youtube Video Player


Plays YouTube videos in Native YouTube App

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:

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

constructor(private youtube: YoutubeVideoPlayer) { }