Update ArtPlayer.html
Browse files2 unmodified lines3456678910111112131413141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576772378798013 unmodified lines949596439798991004 unmodified lines105106107541081091101112 unmodified lines<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Dynamic ArtPlayer (FLV)</title> <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: #000; } body { margin: 0; padding: 0; background-color: #111; font-family: sans-serif; } /* Player Container */ .artplayer-app { width: 100vw; height: 100vh; 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> // URL Parameter ထဲက 'url' ဆိုတဲ့ value ကို ဆွဲထုတ်ခြင်း const urlParams = new URLSearchParams(window.location.search); const streamUrl = urlParams.get('url');
13 unmodified lines const flvPlayer = flvjs.createPlayer({ type: 'flv', url: url, isLive: true, // Live stream အတွက် ထည့်ပေးထားတာ ပိုကောင်းပါတယ် isLive: true, }); 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>'; 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