Update ArtPlayer.html
Browse files2 unmodified lines3456789101112131415161718192021222324252613 unmodified lines404142434445464 unmodified lines515253545556572 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Dynamic ArtPlayer (FLV)</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: #000; }.artplayer-app {width: 100vw;height: 100vh;}</style></head><body><div class="artplayer-app"></div><script>// URL Parameter ထဲက 'url' ဆိုတဲ့ value ကို ဆွဲထုတ်ခြင်းconst urlParams = new URLSearchParams(window.location.search);const streamUrl = urlParams.get('url');13 unmodified linesconst flvPlayer = flvjs.createPlayer({type: 'flv',url: url,isLive: true, // Live stream အတွက် ထည့်ပေးထားတာ ပိုကောင်းပါတယ်});flvPlayer.attachMediaElement(video);flvPlayer.load();4 unmodified lines},});} else {document.body.innerHTML = '<h2 style="color:white; text-align:center; margin-top:20%;">Please provide a URL via ?url= parameter</h2>';}</script></body>2 unmodified lines3456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798013 unmodified lines9495969798991004 unmodified lines1051061071081091101112 unmodified lines<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');13 unmodified linesconst flvPlayer = flvjs.createPlayer({type: 'flv',url: url,isLive: true,});flvPlayer.attachMediaElement(video);flvPlayer.load();4 unmodified lines},});} 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>
ArtPlayer.html+61-7