From 3de0a457b4490eea3d661f51895baa46c0b491df Mon Sep 17 00:00:00 2001 From: Techywarrior Date: Fri, 5 Apr 2013 19:44:57 -0700 Subject: [PATCH] fixed bug with the video controls --- dashboard-ui/scripts/mediaplayer.js | 7 +++++++ dashboard-ui/scripts/videojsextensions.js | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index c03afad628..f3804d6d23 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -316,6 +316,13 @@ player.tech.removeTriggers(); player.load(); } + + //remove custom buttons + _V_.ControlBar.prototype.options.components.ResolutionSelectorButton; + delete _V_.ControlBar.prototype.options.components.SubtitleSelectorButton; + delete _V_.ControlBar.prototype.options.components.LanguageSelectorButton; + delete _V_.ControlBar.prototype.options.components.ChapterSelectorButton; + //player.tech.destroy(); player.destroy(); } else { diff --git a/dashboard-ui/scripts/videojsextensions.js b/dashboard-ui/scripts/videojsextensions.js index 06f9e9a30a..eef527b2b9 100644 --- a/dashboard-ui/scripts/videojsextensions.js +++ b/dashboard-ui/scripts/videojsextensions.js @@ -17,9 +17,9 @@ var videoJSextension = { vjs_sources = [], // This will be an array of arrays of objects, see the video.js api documentation for myPlayer.src() vjs_source = {}, vjs_chapters = [], // This will be an array of arrays of objects, see the video.js api documentation for myPlayer.src() - vjs_chapter = {}; + vjs_chapter = {}, vjs_languages = [], // This will be an array of arrays of objects, see the video.js api documentation for myPlayer.src() - vjs_language = {}; + vjs_language = {}, vjs_subtitles = [], // This will be an array of arrays of objects, see the video.js api documentation for myPlayer.src() vjs_subtitle = {};