Reputation: 155
I am trying to get a video player that will play youtube videos on my ionic project. I installed this plugin and not sure this is what I am looking for. I need to record how long they watched the video for. Then when they get to a certain point they get rewarded with a credit. I am able to get the YouTube video to play using this.
$scope.videoClick = function (resp) {
$cordovaYoutubeVideoPlayer.openVideo(resp);
}
but cant control anything about it.
Upvotes: 0
Views: 382
Reputation: 155
I had to use a YT.Player to be able to control anything with the video. https://developers.google.com/youtube/iframe_api_reference is where I referenced my information.
Upvotes: 0