Download Player.html from M-SPORT/Download: direct link, hf CLI and curl.
- Browser
- Download file 3.76 kB
-
https://huggingface.co/spaces/M-SPORT/Download/resolve/c388d270bd28a9fc42a391d332df2c96b94de20c/Player.html
- Command line
-
hf download hf://spaces/M-SPORT/Download@c388d270bd28a9fc42a391d332df2c96b94de20c/Player.html
-
curl -L -o Player.html https://huggingface.co/spaces/M-SPORT/Download/resolve/c388d270bd28a9fc42a391d332df2c96b94de20c/Player.html
3.76 kB
| <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> | |