contextMenuDisableEmbedOnly) { ?> contextMenuLoop) { $contextMenu[] = "{name: '" . __("Loop") . "', onClick: function () { toogleImageLoop($(this)); }, iconClass: 'fas fa-sync loopButton' }"; } if ($playerSkinsObj->contextMenuCopyVideoURL) { $contextMenu[] = "{name: '" . __("Copy video URL") . "', onClick: function () { copyToClipboard($('#linkFriendly').val()); }, iconClass: 'fas fa-link' }"; } if ($playerSkinsObj->contextMenuCopyVideoURLCurrentTime) { $contextMenu[] = "{name: '" . __("Copy video URL at current time") . "', onClick: function () { copyToClipboard($('#linkCurrentTime').val()); }, iconClass: 'fas fa-link' }"; } if ($playerSkinsObj->contextMenuCopyEmbedCode) { $contextMenu[] = "{name: '" . __("Copy embed code") . "', onClick: function () { $('#textAreaEmbed').focus(); copyToClipboard($('#textAreaEmbed').val()); }, iconClass: 'fas fa-code' }"; } if ($canDownloadVideosFromVideo) { if ($video['type'] == "video") { $files = getVideosURL($video['filename']); foreach ($files as $key => $theLink) { $notAllowedKeys = array('m3u8'); if (empty($advancedCustom->showImageDownloadOption)) { $notAllowedKeys = array_merge($notAllowedKeys, array('jpg', 'gif', 'webp', 'pjpg')); } $keyFound = false; foreach ($notAllowedKeys as $notAllowedKey) { if (preg_match("/{$notAllowedKey}/", $key)) { $keyFound = true; break; } } if ($keyFound) { continue; } $contextMenu[] = "{name: '" . __("Download video") . " ({$key})', onClick: function () { document.location = '{$theLink['url']}?download=1&title=" . urlencode($video['title'] . "_{$key}_.mp4") . "'; }, iconClass: 'fas fa-download' }"; } } else { $contextMenu[] = "{name: '" . __("Download video") . " ({$key})', onClick: function () { document.location = '{$video['videoLink']}?download=1&title=" . urlencode($video['title'] . "_{$key}_.mp4") . "'; }, iconClass: 'fas fa-download' }"; } } if ($playerSkinsObj->showSocialShareOnEmbed && $playerSkinsObj->contextMenuShare && CustomizeUser::canShareVideosFromVideo($video['id'])) { $contextMenu[] = "{name: '" . __("Share") . "', onClick: function () { showSharing(); }, iconClass: 'fas fa-share' }"; ?>