(function(app){

  "use strict"

  app.controller("PlayerController", PlayerController);
  PlayerController.$inject = ["$scope", "$window", "$location", "videoService"];

  /**
   * Defines the player controller.
   */
  function PlayerController($scope, $window, $location, videoService){
    $scope.ready = false;
    
    var urlChunks = /.*\/([^\/]*)\/?/.exec($location.path());
    
    // Got a video id from url
    if(urlChunks.length){
      var mediaId = urlChunks[1];
      
      videoService.getVideo(mediaId, function(video){
        if(video){

          // Retrieve url parameters 
          var urlParams = $location.search();

          $scope.isFullViewport = urlParams["fullscreen"] || false;
          $scope.playerType = urlParams["type"] || "vimeo";
          $scope.data = video;
          $scope.ready = true;
        }
        else
          $window.location.href = "/notFound";

      });
    }
  }

})(angular.module("ov.publish.player"));
(function(app){

  "use strict"

  app.controller("PlayerController", PlayerController);
  PlayerController.$inject = ["$scope", "$window", "$location", "videoService"];

  /**
   * Defines the player controller.
   */
  function PlayerController($scope, $window, $location, videoService){
    $scope.ready = false;
    
    var urlChunks = /.*\/([^\/]*)\/?/.exec($location.path());
    
    // Got a video id from url
    if(urlChunks.length){
      var mediaId = urlChunks[1];
      
      videoService.getVideo(mediaId, function(video){
        if(video){

          // Retrieve url parameters 
          var urlParams = $location.search();

          $scope.isFullViewport = urlParams["fullscreen"] || false;
          $scope.playerType = urlParams["type"] || "html";
          $scope.data = video;
          $scope.ready = true;
        }
        else
          $window.location.href = "/notFound";

      });
    }
  }

})(angular.module("ov.publish.player"));
Use openveo-player html implementation by default
Use openveo-player html implementation by default

If no player is specified, it will now use the html implementation of the player instead of the vimeo player
