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 = {};