Glitchbone / CordovaYoutubeVideoPlayer

Play Youtube Videos in a native Video Player on Android & iOS
MIT License
83 stars 133 forks source link

How exactly to implement this plugin? #19

Open tstrickland415 opened 8 years ago

tstrickland415 commented 8 years ago

New to the cordova and ionic frameworks and am having trouble putting this plugin to use. Do I call the YoutubeVideoPlayer.openVideo('YOUTUBE_VIDEO_ID') from a ng-click event? Does it need to be set as a variable? Does it need to be done through a controller. Someone please help me get a video playing, as I'm sure it's probably something very simple I'm overlooking

Glitchbone commented 8 years ago

Call this in your controller