}
case Link::WEBVIDEO:
if ($compiler->getSetting('webvideoAsLocal', false)) {
+ if (!isset($init['video_service'])) {
+ return parent::getInstance($id, $init, $compiler);
+ }
switch ($init['video_service']) {
case 'youtube':
$url = 'https://www.youtube.com/watch?v=' . $init['to'];
$init['to'] = $file->getFilename();
$init['video_sound_on'] = true;
$init['video_controls'] = true;
+ $init['video_loop'] = false;
$dest = $compiler->getWorkingDir() . $file->getFilename();
if (file_exists($dest)) {
unlink($dest);