Update Player.html
Browse files2 unmodified lines34566789101112131413151617181920202122212223252425262829303127282930313532373839404142333435363738394045414243444748495051525354555657585960454647626348495051666768697071725253545556755758777879596061628163648365666768697071727390747576939495969777787980818210210310483848510610786878889110111112909192939495961171181191201211221231241251261271289798991001011021031301311321331341041051061071361371381391401411421431441451461471481491081091101111121131141151161171181191201212 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 - Internal Only</title> <title>S4ITMM Player - Powered by PlayerJS</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" /> <script src="https://msportmm.vercel.app/myjs/player.js" type="text/javascript"></script> <style> :root { --primary-yellow: #ffcc00; --bg-dark: #0f172a; --card-bg: #1e293b; --player-bg: #000000; }
body { background-color: var(--bg-dark); color: #ffffff; font-family: 'Segoe UI', Roboto, sans-serif; margin: 0; padding: 0; overflow-x: hidden; margin: 0; padding: 0; }
/* Header */ /* Header Section */ .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: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: none; color: var(--primary-yellow); width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; } .header h1 { margin-left: 15px; font-size: 18px; font-weight: 800; color: var(--primary-yellow); } .header h1 span { color: white; font-weight: 400; font-size: 12px; }
/* Video Player */ .player-container { width: 90%; max-width: 450px; margin: 10px auto; position: relative; border-radius: 20px; overflow: hidden; background: var(--player-bg); aspect-ratio: 16/9; box-shadow: 0 20px 40px rgba(0,0,0,0.6); z-index: 10; /* Player Container */ .player-outer { width: 95%; max-width: 500px; margin: 10px auto; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); background: #000; } video { width: 100%; height: 100%; object-fit: contain; } /* PlayerJS အတွက် ID */ #player { width: 100%; aspect-ratio: 16/9; }
/* Overlay UI */ .player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 50%, rgba(0,0,0,0.7) 100%); pointer-events: none; } .watermark { align-self: flex-end; padding: 15px; font-weight: 900; font-size: 18px; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); } .custom-controls { padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; pointer-events: auto; } .ctrl-group { display: flex; align-items: center; gap: 15px; } .ctrl-icon { color: white; cursor: pointer; font-size: 16px; }
/* Card Section */ .card-section { margin-top: -40px; padding: 0 20px 40px; } /* Info Card Area */ .card-section { padding: 20px; } .info-card { background: var(--card-bg); border-radius: 35px; padding: 60px 25px 35px; text-align: center; background: var(--card-bg); border-radius: 30px; padding: 30px 20px; text-align: center; max-width: 420px; margin: 0 auto; } .stream-type { background: rgba(239, 68, 68, 0.1); color: #ef4444; font-size: 11px; font-weight: 800; padding: 4px 14px; border-radius: 20px; display: inline-block; margin-bottom: 12px; } .title { font-size: 22px; font-weight: 800; margin: 0 0 8px; } .meta { color: #94a3b8; font-size: 14px; margin-bottom: 30px; }
.title { font-size: 22px; font-weight: 800; margin-bottom: 5px; } .meta { color: #94a3b8; font-size: 13px; margin-bottom: 25px; text-transform: uppercase; }
/* For More Episode Button */ .more-ep-btn { .btn-more { background: var(--primary-yellow); color: #000; border: none; width: 100%; padding: 18px; border-radius: 20px; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; border: none; width: 100%; padding: 16px; border-radius: 15px; font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2); transition: 0.2s; } .more-ep-btn:active { transform: scale(0.96); } .btn-more:active { transform: scale(0.96); }
.footer-text { margin-top: 20px; font-size: 11px; color: #64748b; line-height: 1.5; } </style></head><body>
<header class="header"> <button class="back-btn" onclick="history.back()"><i class="fas fa-chevron-left"></i></button> <h1>S4ITMM <span>PLAYER</span></h1> <h1>S4ITMM <span>TV</span></h1> </header>
<div class="player-container"> <video id="main-player" playsinline controls></video> <div class="player-overlay"> <div class="watermark">S4ITMM</div> </div> <div class="player-outer"> <div id="player"></div> </div>
<main class="card-section"> <div class="info-card"> <div class="stream-type">INTERNAL PLAYER</div> <h2 class="title" id="display-title">Loading...</h2> <p class="meta">HD STREAMING • 2026</p> <h2 class="title" id="chan-title">Loading...</h2> <p class="meta">Full HD Streaming • 2026</p>
<a href="https://your-redirect-link.com" class="more-ep-btn" id="redirect-btn"> <i class="fas fa-layer-group"></i> FOR MORE EPISODE <a href="#" class="btn-more" id="redirect-link"> <i class="fas fa-list-ul"></i> FOR MORE EPISODES </a>
<div style="margin-top: 25px; font-size: 11px; color: #64748b;"> Auto-detection: HLS/M3U8 Support Enabled<br> Powered by S4ITMM Engine <div class="footer-text"> Powered by PlayerJS Engine<br> High-speed server connected. </div> </div> </main>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script> <script> document.addEventListener('DOMContentLoaded', () => { const video = document.getElementById('main-player'); const titleEl = document.getElementById('display-title'); // URL Parameter ကနေ data ဖတ်မယ် // Example: Player.html?url=LINK_HERE&title=MOVIE_NAME&redirect=REDIRECT_LINK const params = new URLSearchParams(window.location.search); const streamUrl = params.get('url'); const videoTitle = params.get('title') || 'Now Playing'; const redirectLink = params.get('redirect'); <script type="text/JavaScript"> // URL Parameter ဖတ်ရန် const urlParams = new URLSearchParams(window.location.search); const videoUrl = urlParams.get('videoUrl'); const titleText = urlParams.get('title') || 'S4ITMM Live Stream'; const backLink = urlParams.get('redirect') || 'javascript:history.back()';
titleEl.textContent = videoTitle; if (redirectLink) { document.getElementById('redirect-btn').href = redirectLink; } // UI Title & Link ကို Update လုပ်ခြင်း document.getElementById('chan-title').textContent = titleText; document.getElementById('redirect-link').href = backLink;
if (streamUrl) { if (Hls.isSupported()) { const hls = new Hls(); hls.loadSource(streamUrl); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED, () => video.play()); } else if (video.canPlayType('application/vnd.apple.mpegurl')) { video.src = streamUrl; video.addEventListener('loadedmetadata', () => video.play()); } } else { titleEl.textContent = "Error: Link not found"; } }); // PlayerJS သတ်မှတ်ချက်များ if (videoUrl) { var player = new Playerjs({ id: "player", file: videoUrl, poster: "https://i.imgur.com/T4i6UFD.jpg", autoplay: 1 // အလိုအလျောက် Play ရန် }); } else { document.getElementById('player').innerHTML = "<div style='color:white; padding:20px; text-align:center;'>ဗီဒီယိုလင့် မတွေ့ပါ။</div>"; } </script></body></html>Player.html+61-92