Skip to content

Commit c172307

Browse files
committed
chore: fix dependencies injection
1 parent e9d9e3c commit c172307

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

app/js/controllers/EditCtrl.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,10 @@ KMCMenu.controller('EditCtrl', ['$scope','$http', '$timeout','PlayerData','Playe
587587

588588
$scope.renderPlayer = function(){
589589
$scope.updatePlayerData(); // update the player data from the menu data
590-
// $scope.maybeAddAnalyticsPlugins();
591-
// $scope.maybeAddkalturaCuePointsPlugins();
592-
// $scope.maybeAddUIManagersPlugins();
593-
// $scope.maybeAddTimelinePlugins();
590+
$scope.maybeAddAnalyticsPlugins();
591+
$scope.maybeAddkalturaCuePointsPlugins();
592+
$scope.maybeAddUIManagersPlugins();
593+
$scope.maybeAddTimelinePlugins();
594594
$scope.$broadcast('beforeRenderEvent'); // allow other controllers to update the player data if needed
595595
$(".onpagePlaylistInterface").remove(); // remove any playlist onpage containers that might exists from previous rendering
596596

@@ -1013,10 +1013,10 @@ KMCMenu.controller('EditCtrl', ['$scope','$http', '$timeout','PlayerData','Playe
10131013
);
10141014
};
10151015
$scope.updatePlayerData();
1016-
// $scope.maybeAddAnalyticsPlugins();
1017-
// $scope.maybeAddkalturaCuePointsPlugins();
1018-
// $scope.maybeAddUIManagersPlugins();
1019-
// $scope.maybeAddTimelinePlugins();
1016+
$scope.maybeAddAnalyticsPlugins();
1017+
$scope.maybeAddkalturaCuePointsPlugins();
1018+
$scope.maybeAddUIManagersPlugins();
1019+
$scope.maybeAddTimelinePlugins();
10201020
$scope.dataChanged = false;
10211021
window.parent.studioDataChanged = false; // used when navigating away from studio
10221022
if ($scope.playerData.config.plugins.playlistAPI && $scope.playerData.config.plugins.playlistAPI.plugin){
@@ -1143,25 +1143,25 @@ KMCMenu.controller('EditCtrl', ['$scope','$http', '$timeout','PlayerData','Playe
11431143
($scope.playerData.config.plugins.navigation && $scope.playerData.config.plugins.navigation.disable !== true)) {
11441144
$scope.playerData.plugins = $scope.playerData.plugins || {};
11451145
$scope.playerData.config.plugins.uiManagers = {};
1146-
$scope.playerData.plugins.uiManagers = {
1147-
componentName: 'playkit-ui-managers'
1148-
};
1146+
// $scope.playerData.plugins.uiManagers = {
1147+
// componentName: 'playkit-ui-managers'
1148+
// };
11491149
}else{
11501150
delete $scope.playerData.config.plugins.uiManagers;
1151-
delete $scope.playerData.plugins.uiManagers;
1151+
// delete $scope.playerData.plugins.uiManagers;
11521152
}
11531153
};
11541154

11551155
$scope.maybeAddTimelinePlugins = function() {
11561156
if ($scope.playerData.config.plugins.ivq && $scope.playerData.config.plugins.ivq.disable !== true) {
11571157
$scope.playerData.plugins = $scope.playerData.plugins || {};
11581158
$scope.playerData.config.plugins.timeline = {};
1159-
$scope.playerData.plugins.timeline = {
1160-
componentName: 'playkit-timeline'
1161-
};
1159+
// $scope.playerData.plugins.timeline = {
1160+
// componentName: 'playkit-timeline'
1161+
// };
11621162
}else{
11631163
delete $scope.playerData.config.plugins.timeline;
1164-
delete $scope.playerData.plugins.timeline;
1164+
// delete $scope.playerData.plugins.timeline;
11651165
}
11661166
};
11671167

@@ -1175,12 +1175,12 @@ KMCMenu.controller('EditCtrl', ['$scope','$http', '$timeout','PlayerData','Playe
11751175
) {
11761176
$scope.playerData.plugins = $scope.playerData.plugins || {};
11771177
$scope.playerData.config.plugins.kalturaCuepoints = {};
1178-
$scope.playerData.plugins.kalturaCuepoints = {
1179-
componentName: 'playkit-kaltura-cuepoints'
1180-
};
1178+
// $scope.playerData.plugins.kalturaCuepoints = {
1179+
// componentName: 'playkit-kaltura-cuepoints'
1180+
// };
11811181
}else{
11821182
delete $scope.playerData.config.plugins.kalturaCuepoints;
1183-
delete $scope.playerData.plugins.kalturaCuepoints;
1183+
// delete $scope.playerData.plugins.kalturaCuepoints;
11841184
}
11851185
};
11861186

@@ -1189,14 +1189,14 @@ KMCMenu.controller('EditCtrl', ['$scope','$http', '$timeout','PlayerData','Playe
11891189
var playerVersion = PlayerService.getComponentVersion($scope.playerData, playerName);
11901190
if (playerVersion === '{latest}' || playerVersion === '{beta}' || playerVersion.split('.')[1] >= noAnalyticsVersionMajor) {
11911191
$scope.playerData.plugins = $scope.playerData.plugins || {};
1192-
$scope.playerData.plugins.kava = {
1193-
componentName: 'playkit-kava'
1194-
};
1192+
// $scope.playerData.plugins.kava = {
1193+
// componentName: 'playkit-kava'
1194+
// };
11951195
$scope.playerData.config.plugins.kava = $scope.playerData.config.plugins.kava || {};
11961196
if (PlayerService.OvpOrOtt === PlayerService.OTT) {
1197-
$scope.playerData.plugins.ottAnalytics = {
1198-
componentName: 'playkit-ott-analytics'
1199-
};
1197+
// $scope.playerData.plugins.ottAnalytics = {
1198+
// componentName: 'playkit-ott-analytics'
1199+
// };
12001200
$scope.playerData.config.plugins.ottAnalytics = $scope.playerData.config.plugins.ottAnalytics || {};
12011201
if ($scope.playerData.config.plugins.kava.disable !== false) {
12021202
$scope.playerData.config.plugins.kava.disable = true;

0 commit comments

Comments
 (0)