Further fix for when getRealTimeForPlayerTime is null

pull/163/head
Mike Lang 5 years ago
parent 58a2a0402d
commit 58ff90cefe

@ -202,10 +202,12 @@ loadPlaylist = function(isEditor, startTrim, endTrim, defaultQuality) {
if (player && player.trimmingControls) {
var discontinuities = mapDiscontinuities();
if (!startTrim) {
startTrim = getRealTimeForPlayerTime(discontinuities, player.trimmingControls().options.startTrim).replace('Z','');
startTrim = getRealTimeForPlayerTime(discontinuities, player.trimmingControls().options.startTrim);
if (startTrim) {startTrim = startTrim.replace('Z','');}
}
if (!endTrim) {
endTrim = getRealTimeForPlayerTime(discontinuities, player.trimmingControls().options.endTrim).replace('Z','');
endTrim = getRealTimeForPlayerTime(discontinuities, player.trimmingControls().options.endTrim);
if (endTrim) {endTrim = endTrim.replace('Z','');}
}
}

Loading…
Cancel
Save