diff --git a/view/include/video.php b/view/include/video.php index eb998f8b7..91649dcc0 100644 --- a/view/include/video.php +++ b/view/include/video.php @@ -1,306 +1,346 @@ videoStartSeconds)){ $video['externalOptions']->videoStartSeconds = parseDurationToSeconds($video['externalOptions']->videoStartSeconds); }else{ $video['externalOptions']->videoStartSeconds = 0; } if (isset($_GET['t'])) { $currentTime = intval($_GET['t']); } else if (!empty($video['progress']['lastVideoTime'])) { $currentTime = intval($video['progress']['lastVideoTime']); $maxCurrentTime = parseDurationToSeconds($video['duration']); if ($maxCurrentTime <= $currentTime + 5) { if (!empty($video['externalOptions']->videoStartSeconds)) { $currentTime = intval($video['externalOptions']->videoStartSeconds); } else { $currentTime = 0; } } } else if (!empty($video['externalOptions']->videoStartSeconds)) { $currentTime = intval($video['externalOptions']->videoStartSeconds); } AVideoPlugin::loadPlugin('PlayerSkins'); ?>