diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js
index b7465bb4..fc1921c1 100644
--- a/source/Ox.UI/js/Video/VideoPlayer.js
+++ b/source/Ox.UI/js/Video/VideoPlayer.js
@@ -1645,7 +1645,7 @@ Ox.VideoPlayer = function(options, self) {
}
function hideMarkers() {
- Ox.forEach(self.$posterMarker, function(marker) {
+ self.$posterMarker && Ox.forEach(self.$posterMarker, function(marker) {
marker.hide();
});
Ox.forEach(self.$pointMarker, function(markers) {
@@ -1932,7 +1932,7 @@ Ox.VideoPlayer = function(options, self) {
function setMarkers() {
//Ox.Log('Video', 'SET MARKERS', self.options.position, self.options['in'], self.options.out, self.$pointMarker);
- Ox.forEach(self.$posterMarker, function(marker) {
+ self.$posterMarker && Ox.forEach(self.$posterMarker, function(marker) {
isEqual(self.options.position, self.options.posterFrame)
? marker.show() : marker.hide();
});
@@ -2079,7 +2079,7 @@ Ox.VideoPlayer = function(options, self) {
//Ox.Log('Video', 'setSubTx', self.subtitle, self.options.find)
self.$subtitle.html(
self.subtitle
- ? Ox.highlight(self.subtitle, self.options.find, 'OxHighlight')
+ ? Ox.highlight(self.subtitle, self.options.find, 'OxHighlight', true)
.replace(/\n/g, '
')
: '
'
// FIXME: weird bug, only in fullscreen, only in chrome