diff --git a/embed.php b/embed.php index de8bc13..b37bfbb 100644 --- a/embed.php +++ b/embed.php @@ -34,6 +34,13 @@ foreach ($player_sources as $player_source) { if (($player_source['kind'] ?? '') !== 'iframe') $native_player_sources[] = $player_source; } +$meta_title = $video ? $video['title'] . ' — TyClifford.com' : 'Video Player'; +$meta_description = $video && trim($video['description'] ?? '') !== '' ? trim($video['description']) : 'TyClifford.com media player'; +$meta_url = $video + ? public_absolute_url('embed.php?v=' . rawurlencode($video['slug'])) + : public_absolute_url('embed.php'); +$meta_image = ($video && !empty($video['thumbnail'])) ? public_absolute_url(public_media_url($video['thumbnail'])) : ''; + // X-Frame-Options: allow embedding from any origin. // If you want to restrict, change ALLOWALL to SAMEORIGIN or remove for CSP header instead. header('X-Frame-Options: ALLOWALL'); @@ -45,6 +52,25 @@ header('Content-Security-Policy: frame-ancestors *'); <?= $video ? htmlspecialchars($video['title'], ENT_QUOTES) . ' — TyClifford.com' : 'Video Player' ?> + + + + + + + + + + + + + + + + + + +