unserver-unify
Version:
28 lines (21 loc) • 617 B
JavaScript
;
angular.module('bamboo.course')
.controller('Mp4DlgCtrl', function ( mp4url, AppConfig, $sce) {
/* received all API from videogular when html was loaded*/
this.API = null;
this.onPlayerReady = function (API) {
this.API = API;
};
//control function to generate above API structure
this.VideoConfig = {
sources: [
{
src : $sce.trustAsResourceUrl(encodeURI(mp4url)),
type: 'video/mp4'
}
],
theme: {
url: AppConfig.videogular_theme
}
};
});