mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00

* style(canva-camera): fix angular style * style(crop): fix angular style * style(file-chooser): fix angular style * style(file-opener): fix angular style * style(file): fix angular style * style(inappbrowser): fix angular style * style(instagram): fix angular style * style(is-debug): fix angular style * style(native-page-transitions): fix angular style * style(market): fix angular style * style(music-controls): fix angular style * style(nfc): fix angular style * style(pay-pal): fix angular style * style(power-management): fix angular style * style(securestorage): fix angular style * style(streaming-media): fix angular style * style(video-editor): fix angular style * style(youtube-video-player): fix angular style
29 lines
677 B
TypeScript
29 lines
677 B
TypeScript
import { Plugin, Cordova } from './plugin';
|
|
/**
|
|
* @name YoutubeVideoPlayer
|
|
* @description
|
|
* Plays YouTube videos in Native YouTube App
|
|
*
|
|
* @usage
|
|
* ```
|
|
* import {YoutubeVideoPlayer} from 'ionic-native';
|
|
*
|
|
* YouTubeVideoPlayer.openVideo('myvideoid');
|
|
*
|
|
* ```
|
|
*/
|
|
@Plugin({
|
|
plugin: 'https://github.com/Glitchbone/CordovaYoutubeVideoPlayer.git',
|
|
pluginRef: 'YoutubeVideoPlayer',
|
|
repo: 'https://github.com/Glitchbone/CordovaYoutubeVideoPlayer',
|
|
platforms: ['Android', 'iOS']
|
|
})
|
|
export class YoutubeVideoPlayer {
|
|
/**
|
|
* Plays a YouTube video
|
|
* @param videoId {string} Video ID
|
|
*/
|
|
@Cordova({sync: true})
|
|
static openVideo(videoId: string): void { }
|
|
}
|