Spaces:
Paused

File size: 3,764 Bytes
0e570c3
 
 
 
 
4e4017c
0e570c3
 
b340157
82e81c5
4e4017c
ff75bfb
82e81c5
9a71574
 
4e4017c
82e81c5
4e4017c
 
 
 
 
 
 
 
 
82e81c5
4e4017c
9a71574
82e81c5
4e4017c
 
 
 
 
 
82e81c5
 
4e4017c
 
 
 
 
 
 
 
 
 
 
 
82e81c5
4e4017c
0e570c3
 
ff75bfb
0e570c3
ff75bfb
 
82e81c5
0e570c3
 
82e81c5
0ccb5a1
0e570c3
 
9a71574
82e81c5
50a7fb1
ecc9c59
9a71574
 
 
82e81c5
 
 
4e4017c
 
82e81c5
 
 
3c4eb70
82e81c5
 
0e570c3
4e4017c
 
82e81c5
4e4017c
 
 
 
 
82e81c5
4e4017c
9a71574
82e81c5
0e570c3
 
 
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <title>S4ITMM Player - Direct Mode</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
  <style>
    :root { --primary-yellow: #ffcc00; --bg-dark: #0f172a; --card-bg: #1e293b; }
    body { background-color: var(--bg-dark); color: #ffffff; font-family: sans-serif; margin: 0; padding: 0; }
    
    .header { padding: 15px 20px; display: flex; align-items: center; }
    .back-btn { background: rgba(255,255,255,0.1); border: none; color: var(--primary-yellow); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .header h1 { margin-left: 15px; font-size: 18px; color: var(--primary-yellow); font-weight: 800; margin: 0; }
    
    /* Video Area */
    .player-container { 
        width: 100%; 
        max-width: 500px; 
        margin: 10px auto; 
        aspect-ratio: 16/9; 
        background: #000;
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    video { width: 100%; height: 100%; object-fit: contain; }

    .info-card { 
        background: var(--card-bg); 
        margin: 20px; 
        padding: 30px 20px; 
        border-radius: 25px; 
        text-align: center;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }
    .btn-more { 
        background: var(--primary-yellow); 
        color: #000; 
        padding: 15px; 
        border-radius: 12px; 
        font-weight: bold; 
        text-decoration: none; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        gap: 10px;
        margin-top: 20px;
        transition: 0.2s;
    }
    .btn-more:active { transform: scale(0.95); }
  </style>
</head>
<body>

  <header class="header">
    <button class="back-btn" onclick="history.back()"><i class="fas fa-chevron-left"></i></button>
    <h1>S4ITMM <span style="color:white; font-weight:lighter; font-size:12px;">STABLE PLAYER</span></h1>
  </header>

  <div class="player-container">
    <video id="main-player" controls autoplay playsinline poster="playerbg.png"></video>
  </div>

  <div class="info-card">
    <h2 id="v-title" style="margin:0; font-size:1.2rem;">Loading Title...</h2>
    <a href="https://m-sport-download.static.hf.space" class="btn-more" id="more-btn">
       <i class="fas fa-download"></i> FOR MORE Watching Download Now(Apk ဒေါင်းရန်)
    </a>
  </div>

  <script type="text/JavaScript">
    window.onload = function() {
        const urlParams = new URLSearchParams(window.location.search);
        
        // url သို့မဟုတ် videoUrl parameter ကိုဖတ်မယ်
        let videoUrl = urlParams.get('url') || urlParams.get('videoUrl'); 
        const titleText = urlParams.get('title') || 'Now Playing';
        const moreLink = urlParams.get('redirect');

        document.getElementById('v-title').innerText = titleText;
        if(moreLink) document.getElementById('more-btn').href = moreLink;

        const video = document.getElementById('main-player');

        if (videoUrl) {
            // Video src ကို တိုက်ရိုက်ထည့်မယ်
            video.src = videoUrl;
            video.play().catch(function(error) {
                console.log("Auto-play was prevented");
            });
        } else {
            document.getElementById('v-title').innerText = "ဗီဒီယိုလင့် မတွေ့ပါ။";
        }
    };
  </script>
</body>
</html>