-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideoplayer.php
More file actions
46 lines (35 loc) · 1.3 KB
/
videoplayer.php
File metadata and controls
46 lines (35 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<!-- Set the character encoding for the HTML document -->
<meta charset="UTF-8">
<!-- Configure the viewport for responsive design -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Indicate the name of the page's author or the organization responsible for its creation -->
<meta name="author" content="TechFixExperts">
<link rel="stylesheet" type="text/css" href="header.css">
<link rel="stylesheet" type="text/css" href="videoplayer.css">
<link rel="icon" href="images/apple-whole-solid.png" type="img/png">
<link rel="stylesheet" type="text/css" href="footer.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<title>How it's done</title>
</head>
<body id="home">
<?php
include('header.php');
// Recupera l'URL del video dalla query string
$video = $_GET['url'];
?>
<div class="player">
<script type="text/javascript">
var videoURL = "<?php echo $video; ?>";
var iframe = document.createElement("iframe");
iframe.src = videoURL;
iframe.width = "700";
iframe.height = "700";
document.querySelector(".player").appendChild(iframe);
</script>
</div>
<?php include('footer.html'); ?>
</body>
</html>