Spaces:
Running
Running
Update index.html
Browse files- index.html +57 -18
index.html
CHANGED
|
@@ -1,19 +1,58 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 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>Telegram Video Player</title>
|
| 7 |
+
<script src="https://telegram.org/js/telegram-web-app.js"></script>
|
| 8 |
+
<style>
|
| 9 |
+
body {
|
| 10 |
+
font-family: Arial, sans-serif;
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 0;
|
| 13 |
+
background-color: #f0f0f0;
|
| 14 |
+
display: flex;
|
| 15 |
+
justify-content: center;
|
| 16 |
+
align-items: center;
|
| 17 |
+
height: 100vh;
|
| 18 |
+
}
|
| 19 |
+
.video-container {
|
| 20 |
+
width: 90%;
|
| 21 |
+
max-width: 800px;
|
| 22 |
+
background-color: #fff;
|
| 23 |
+
padding: 20px;
|
| 24 |
+
border-radius: 10px;
|
| 25 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 26 |
+
}
|
| 27 |
+
video {
|
| 28 |
+
width: 100%;
|
| 29 |
+
border-radius: 10px;
|
| 30 |
+
}
|
| 31 |
+
</style>
|
| 32 |
+
</head>
|
| 33 |
+
<body>
|
| 34 |
+
<div class="video-container">
|
| 35 |
+
<h2>Video Player</h2>
|
| 36 |
+
<video controls>
|
| 37 |
+
<source src="https://your-server-url.com/video.mp4" type="video/mp4"> <!-- Replace with your hosted video URL -->
|
| 38 |
+
Your browser does not support HTML5 video.
|
| 39 |
+
</video>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<script>
|
| 43 |
+
// Initialize Telegram Web App
|
| 44 |
+
const tg = window.Telegram.WebApp;
|
| 45 |
+
|
| 46 |
+
// Notify Telegram that the app is ready
|
| 47 |
+
tg.ready();
|
| 48 |
+
|
| 49 |
+
// Optionally expand the app to full screen
|
| 50 |
+
tg.expand();
|
| 51 |
+
|
| 52 |
+
// Main button functionality (optional)
|
| 53 |
+
tg.MainButton.setText("Close App").show().onClick(() => {
|
| 54 |
+
tg.close();
|
| 55 |
+
});
|
| 56 |
+
</script>
|
| 57 |
+
</body>
|
| 58 |
</html>
|