Update Player.html
Browse files2 unmodified lines3456789101112131415161718192021222324252627282930313233344 unmodified lines3940414243444546474849505152535455565758591 unmodified line61626364656667686970717273747576777879808182832 unmodified lines<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</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; }.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);}#player { width: 100%; height: 100%; }.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;}</style></head><body>4 unmodified lines</header><div class="player-container"><div id="player"></div></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-layer-group"></i> FOR MORE EPISODES</a></div><script src="player.js" type="text/javascript"></script><script type="text/JavaScript">window.onload = function() {const urlParams = new URLSearchParams(window.location.search);let videoUrl = urlParams.get('url') || urlParams.get('videoUrl');const titleText = urlParams.get('title') || 'Now Playing';const moreLink = urlParams.get('redirect');1 unmodified linedocument.getElementById('v-title').innerText = titleText;if(moreLink) document.getElementById('more-btn').href = moreLink;if (videoUrl) {try {// Playerjs က videoUrl ကို play ဖို့ကြိုးစားမယ်var player = new Playerjs({id: "player",file: videoUrl,poster: "https://i.imgur.com/T4i6UFD.jpg",autoplay: 1});} catch (err) {// အကယ်၍ Error တက်ရင် (ဥပမာ http ကြောင့်ဖြစ်ဖြစ်) Native Player နဲ့ အတင်းဖွင့်မယ်document.getElementById('player').innerHTML = `<video src="${videoUrl}" controls autoplay style="width:100%;height:100%;"></video>`;}} else {document.getElementById('player').innerHTML = "<p style='color:white;text-align:center;padding-top:20%;'>ဗီဒီယိုလင့် မတွေ့ပါ။</p>";}};</script>2 unmodified lines3456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354554 unmodified lines6061626364656667686970717273747576777879801 unmodified line828384858687888990919293949596972 unmodified lines<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>4 unmodified lines</header><div class="player-container"><video id="main-player" controls autoplay playsinline poster="https://i.imgur.com/T4i6UFD.jpg"></video></div><div class="info-card"><h2 id="v-title" style="margin:0; font-size:1.2rem;">Loading Title...</h2><a href="https://msportmm.vercel.app" class="btn-more" id="more-btn"><i class="fas fa-layer-group"></i> FOR MORE EPISODES</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');1 unmodified linedocument.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>
Player.html+44-30