Youtube Video Player
Plays YouTube videos in Native YouTube App
联系我们?

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.
Ionic Youtube Video Player插件的安装(Installation)
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
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');