Spaces:
Running
Running
Create movie1.html
Browse files- movie1.html +95 -0
movie1.html
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Video Streaming Page</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
background-color: #f0f0f0;
|
11 |
+
margin: 0;
|
12 |
+
padding: 20px;
|
13 |
+
display: flex;
|
14 |
+
justify-content: center;
|
15 |
+
align-items: center;
|
16 |
+
min-height: 100vh;
|
17 |
+
}
|
18 |
+
.video-container {
|
19 |
+
background-color: #ffffff;
|
20 |
+
border-radius: 10px;
|
21 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
22 |
+
padding: 20px;
|
23 |
+
max-width: 800px;
|
24 |
+
width: 100%;
|
25 |
+
}
|
26 |
+
video {
|
27 |
+
width: 100%;
|
28 |
+
border-radius: 5px;
|
29 |
+
}
|
30 |
+
h1 {
|
31 |
+
color: #333;
|
32 |
+
text-align: center;
|
33 |
+
}
|
34 |
+
.controls {
|
35 |
+
display: flex;
|
36 |
+
justify-content: center;
|
37 |
+
margin-top: 15px;
|
38 |
+
}
|
39 |
+
button {
|
40 |
+
background-color: #4CAF50;
|
41 |
+
border: none;
|
42 |
+
color: white;
|
43 |
+
padding: 10px 20px;
|
44 |
+
text-align: center;
|
45 |
+
text-decoration: none;
|
46 |
+
display: inline-block;
|
47 |
+
font-size: 16px;
|
48 |
+
margin: 4px 2px;
|
49 |
+
cursor: pointer;
|
50 |
+
border-radius: 5px;
|
51 |
+
}
|
52 |
+
button:hover {
|
53 |
+
background-color: #45a049;
|
54 |
+
}
|
55 |
+
</style>
|
56 |
+
</head>
|
57 |
+
<body>
|
58 |
+
<div class="video-container">
|
59 |
+
<h1>Watch The Passion of The Christ.</h1>
|
60 |
+
<video id="videoPlayer" controls>
|
61 |
+
<source src="The Passion of the Christ [2004].mp4" type="video/mp4">
|
62 |
+
Your browser does not support the video tag.
|
63 |
+
</video>
|
64 |
+
<div class="controls">
|
65 |
+
|
66 |
+
<button onclick="loadProgress()"> Press here to resume to where you left off.</button>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
+
<script>
|
71 |
+
const video = document.getElementById('videoPlayer');
|
72 |
+
|
73 |
+
function saveProgress() {
|
74 |
+
localStorage.setItem('videoProgress', video.currentTime);
|
75 |
+
alert('Progress saved!');
|
76 |
+
}
|
77 |
+
|
78 |
+
function loadProgress() {
|
79 |
+
const savedTime = localStorage.getItem('videoProgress');
|
80 |
+
if (savedTime) {
|
81 |
+
video.currentTime = parseFloat(savedTime);
|
82 |
+
video.play();
|
83 |
+
} else {
|
84 |
+
alert('No saved progress found.');
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
// Auto-save progress every 5 seconds
|
89 |
+
setInterval(saveProgress, 5000);
|
90 |
+
|
91 |
+
// Load saved progress when the page loads
|
92 |
+
window.onload = loadProgress;
|
93 |
+
</script>
|
94 |
+
</body>
|
95 |
+
</html>
|