thrimbletrimmer: Fix a bug when trimming controls aren't enabled

pull/158/head
Mike Lang 5 years ago
parent fde2758275
commit e2f4162ac7

@ -199,7 +199,7 @@ loadPlaylist = function(isEditor, startTrim, endTrim, defaultQuality) {
var queryString = buildQuery(range);
// Preserve existing edit times
if (player) {
if (player && player.trimmingControls) {
var discontinuities = mapDiscontinuities();
if (!startTrim) {
startTrim = getRealTimeForPlayerTime(discontinuities, player.trimmingControls().options.startTrim).replace('Z','');

Loading…
Cancel
Save