Cordova plugins?

hi

looooove ionic but just understand that cordova plugins do not work out of the box with ionic (bad for me…)

how can i use this plugin please?

cordova plugin add https://github.com/raulduran/VideoPlayer.git

thanks

Should be able to use like so…

.controller('MainCtrl', function($scope, $ionicPlatform){
  $ionicPlatform.ready(function() {
    $scope.playVideo = function(){
      if(window.cordova && window.cordova.plugins.videoPlayer){
        cordova.plugins.videoPlayer.play("http://path.to.my/video.mp4");
      }
    }
  });
})

Just remember that you should wrap it in $ionicPlatform.ready to make sure cordvoa is ready.

hi

thanks it works !

++

Hi, please how can i use it for multiple URLs ? defined in another Controller with under a scope service ?