网易云

Ionic实战视频教程(跨平台): https://www.itying.com/goods-1067.html

Flutter实战视频教程(跨平台): https://www.itying.com/goods-1176.html

Youtube Video Player

Contents

Plays YouTube videos in Native YouTube App

https://github.com/ihadeed/CordovaYoutubeVideoPlayer

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

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

ionic cordova plugin add cordova-plugin-youtube-video-player npm install @ionic-native/youtube-video-player
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/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/ngx';

constructor(private youtube: YoutubeVideoPlayer) { }

...


this.youtube.openVideo('myvideoid');