diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index ed56e529..635fcd55 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -1242,7 +1242,7 @@ Ox.VideoPlayer = function(options, self) { v['in'] <= self.options.position && v.out > self.options.position ) { - subtitle = Ox.highlight(v.text, self.options.find, 'OxHighlight'); + subtitle = v.text; return false; } }); @@ -1599,13 +1599,18 @@ Ox.VideoPlayer = function(options, self) { var subtitle = getSubtitle(); if (subtitle != self.subtitle) { self.subtitle = subtitle; - self.$subtitle.html( - Ox.highlight(self.subtitle, self.options.find, 'Ox.Highlight') - .replace(/\n/g, '
') - ); + setSubtitleText(); } } + function setSubtitleText() { + Ox.print('setSubTx', self.subtitle, self.options.find) + self.$subtitle.html( + Ox.highlight(self.subtitle, self.options.find, 'OxHighlight') + .replace(/\n/g, '
') + ); + } + function changeVolumeBy(num) { self.options.volume = Ox.limit(self.options.volume + num, 0, 1); setVolume(self.options.volume); @@ -1686,6 +1691,7 @@ Ox.VideoPlayer = function(options, self) { self.options.find = value; self.results = find(self.options.find, hasPressedEnter); self.$results.html(self.results.length); + self.subtitle && setSubtitleText(); self.$timeline && self.$timeline.options({ find: self.options.find, results: self.results