From 5a237491d478435fc8c01dd3ddc71e3cacce0fa1 Mon Sep 17 00:00:00 2001 From: dhirenaade Date: Fri, 20 Dec 2019 11:58:03 +0530 Subject: [PATCH] Issue #SB-16023 fix: resolve youtube content can able to play from the endpage. --- .../org.sunbird.player.endpage-1.1/renderer/endpageApp.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/player/public/coreplugins/org.sunbird.player.endpage-1.1/renderer/endpageApp.js b/player/public/coreplugins/org.sunbird.player.endpage-1.1/renderer/endpageApp.js index 6eba0d875..77222bf93 100644 --- a/player/public/coreplugins/org.sunbird.player.endpage-1.1/renderer/endpageApp.js +++ b/player/public/coreplugins/org.sunbird.player.endpage-1.1/renderer/endpageApp.js @@ -172,10 +172,6 @@ endPage.controller("endPageController", function($scope, $rootScope, $state,$ele contentMetadata.basepath = contentMetadata.basePath; $rootScope.content = window.content = content = contentMetadata; } - - if(content.mimeType === "video/x-youtube"){ - contentToPlay.content.isAvailableLocally = false; - } if (contentToPlay.content.isAvailableLocally) { EkstepRendererAPI.hideEndPage(); @@ -184,8 +180,6 @@ endPage.controller("endPageController", function($scope, $rootScope, $state,$ele 'data': undefined, 'metadata': contentMetadata } - GlobalContext.config = mergeJSON(AppConfig, contentMetadata); - window.globalConfig = GlobalContext.config; org.ekstep.contentrenderer.initializePreview(object) EkstepRendererAPI.dispatchEvent('renderer:player:show');