Download ArtPlayer.html from M-SPORT/Download: direct link, hf CLI and curl.
- Browser
- Download file 3.61 kB
-
https://huggingface.co/spaces/M-SPORT/Download/resolve/main/ArtPlayer.html
- Command line
-
hf download hf://spaces/M-SPORT/Download/ArtPlayer.html
-
curl -L -o ArtPlayer.html https://huggingface.co/spaces/M-SPORT/Download/resolve/main/ArtPlayer.html
3.61 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ArtPlayer with Action Buttons</title> | |
| <!-- Libraries --> | |
| <script src="https://cdn.jsdelivr.net/npm/flv.js/dist/flv.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script> | |
| <style> | |
| body { margin: 0; padding: 0; background-color: #111; font-family: sans-serif; } | |
| /* Player Container */ | |
| .artplayer-app { | |
| width: 100%; | |
| height: 60vh; /* Player height */ | |
| background: #000; | |
| } | |
| /* Button Container */ | |
| .button-container { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 15px; | |
| padding: 20px; | |
| } | |
| /* Color Running Button Styling */ | |
| .running-btn { | |
| width: 90%; | |
| max-width: 400px; | |
| padding: 12px; | |
| border: none; | |
| border-radius: 8px; | |
| color: white; | |
| font-size: 16px; | |
| font-weight: bold; | |
| text-decoration: none; | |
| text-align: center; | |
| cursor: pointer; | |
| /* Gradient Animation */ | |
| background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); | |
| background-size: 400% 400%; | |
| animation: gradientBG 5s ease infinite; | |
| box-shadow: 0 4px 15px rgba(0,0,0,0.3); | |
| } | |
| @keyframes gradientBG { | |
| 0% { background-position: 0% 50%; } | |
| 50% { background-position: 100% 50%; } | |
| 100% { background-position: 0% 50%; } | |
| } | |
| .running-btn:active { | |
| transform: scale(0.98); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Video Player --> | |
| <div class="artplayer-app"></div> | |
| <!-- Buttons --> | |
| <div class="button-container"> | |
| <a href="https://t.me/S4MMTV/2794?single" class="running-btn" target="_blank"> | |
| For More Watching | |
| </a> | |
| <a href="https://m-sport-download.static.hf.space/" class="running-btn" target="_blank"> | |
| Download APK Now | |
| </a> | |
| </div> | |
| <script> | |
| const urlParams = new URLSearchParams(window.location.search); | |
| const streamUrl = urlParams.get('url'); | |
| if (streamUrl) { | |
| var art = new Artplayer({ | |
| container: '.artplayer-app', | |
| url: streamUrl, | |
| type: 'flv', | |
| fullscreen: true, | |
| fullscreenWeb: true, | |
| autoSize: true, | |
| pip: true, | |
| setting: true, | |
| customType: { | |
| flv: function (video, url) { | |
| if (flvjs.isSupported()) { | |
| const flvPlayer = flvjs.createPlayer({ | |
| type: 'flv', | |
| url: url, | |
| isLive: true, | |
| }); | |
| flvPlayer.attachMediaElement(video); | |
| flvPlayer.load(); | |
| } else { | |
| art.notice.show = 'FLV not supported'; | |
| } | |
| }, | |
| }, | |
| }); | |
| } else { | |
| document.querySelector('.artplayer-app').innerHTML = '<h3 style="color:white; text-align:center; padding-top:20%;">Please add ?url= link in address bar</h3>'; | |
| } | |
| </script> | |
| </body> | |
| </html> | |