Update Player.html
Browse files2 unmodified lines34567678101112131415161791011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848520868722232488899091922728293031323334353637389394959697989942434445464748491001011021031041055152535410610710810956575859606162636465110111112113114115116676869707172117118119120121122123124125126127128129741301317677781321331341358081828384858687888990919213613713813914014114214314414594959697981461471481491501512 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 - Video Player</title> <script src="https://cdn.tailwindcss.com"></script> <title>S4ITMM Player - Internal Only</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" /> <style> body { background-color: #0f172a; color: #e2e8f0; font-family: sans-serif; min-height: 100vh; display: flex; flex-direction: column; } .glass-card { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1.5rem; } .movie-poster-large { width: 100%; max-width: 280px; aspect-ratio: 16/9; object-fit: contain; background: #000; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); border: 2px solid rgba(255, 215, 0, 0.2); margin: 0 auto; } .action-button { background: linear-gradient(90deg, #FFD700, #facc15); color: #000; font-weight: bold; padding: 1rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s ease; border: none; width: 100%; cursor: pointer; text-decoration: none; } .action-button:active { transform: scale(0.98); opacity: 0.9; } .back-button { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: rgba(255,255,255,0.1); border-radius: 9999px; color: #FFD700; } .modal-overlay { background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); } .no-select { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } :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; }
/* Header */ .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%; 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; border: 1px solid rgba(255,255,255,0.1); } video { width: 100%; height: 100%; object-fit: contain; }
/* 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 { background: var(--card-bg); border-radius: 35px; padding: 60px 25px 35px; 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; }
/* For More Episode Button */ .more-ep-btn { 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; cursor: pointer; text-decoration: none; box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2); } .more-ep-btn:active { transform: scale(0.96); } </style></head><body class="no-select"><body>
<header class="p-4 flex items-center"> <a href="javascript:history.back()" class="back-button"><i class="fas fa-chevron-left"></i></a> <h1 class="ml-4 text-yellow-400 font-black text-lg">S4ITMM <span class="text-white text-xs font-light">PLAYER</span></h1> <header class="header"> <button class="back-btn" onclick="history.back()"><i class="fas fa-chevron-left"></i></button> <h1>S4ITMM <span>PLAYER</span></h1> </header>
<main class="flex-1 flex flex-col items-center justify-center p-4"> <div id="movie-detail-container" class="w-full max-w-lg"> </div> </main>
<div id="player-modal" class="modal-overlay fixed inset-0 z-[100] hidden items-center justify-center p-6"> <div class="bg-slate-900 border border-white/10 w-full max-w-sm rounded-[2.5rem] p-8 text-center shadow-2xl"> <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnni40YRRPc9wGBd2tDOIX1qCTqddax0tPR5QsIxC8HA&s=10" class="w-20 h-20 rounded-2xl mx-auto mb-6 shadow-lg"> <h3 class="text-white text-xl font-bold mb-2">Player Not Found</h3> <p class="text-slate-400 text-sm mb-8">Please install <b>Network Streaming Video Player</b> to play this video.</p> <a href="https://play.google.com/store/apps/details?id=com.genuine.leone" class="block w-full bg-blue-600 text-white font-bold py-4 rounded-2xl mb-3">Install Player</a> <button id="close-modal" class="text-slate-500 text-xs uppercase font-bold">Close</button> <div class="player-container"> <video id="main-player" playsinline controls></video> <div class="player-overlay"> <div class="watermark">S4ITMM</div> </div> </div>
<script> document.addEventListener('DOMContentLoaded', () => { const container = document.getElementById('movie-detail-container'); // Get URL parameters (e.g., ?url=... or ?auth_key1=...) const urlParams = new URLSearchParams(window.location.search); const streamUrl = urlParams.get('url') || urlParams.get('auth_key1'); const title = urlParams.get('title') || "Video Stream"; <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>
if (!streamUrl) { container.innerHTML = `<div class="glass-card text-center"><p>No Video URL Provided</p></div>`; return; } <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>
container.innerHTML = ` <div class="flex flex-col items-center"> <img src="https://placehold.co/400x225/1e293b/fbbf24?text=VIDEO" class="movie-poster-large mb-8"> <div class="glass-card w-full text-center"> <h2 class="text-white text-2xl font-black mb-2">${title}</h2> <p class="text-slate-500 text-xs mb-8 uppercase">Movie/Series • 2026</p> <a href="https://your-redirect-link.com" class="action-button mb-4"> <i class="fas fa-list"></i> For More Episode </a> <div style="margin-top: 25px; font-size: 11px; color: #64748b;"> Auto-detection: HLS/M3U8 Support Enabled<br> Powered by S4ITMM Engine </div> </div> </main>
<button id="watch-button" class="action-button" style="background: #3b82f6; color: white;"> <i class="fas fa-play"></i> Open in External Player </button> </div> </div> `; <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');
const watchBtn = document.getElementById('watch-button'); titleEl.textContent = videoTitle; watchBtn.addEventListener('click', async () => { const isAndroid = /Android/i.test(navigator.userAgent); const intentUri = `intent:${streamUrl}#Intent;action=android.intent.action.VIEW;type=video/*;package=com.genuine.leone;S.title=${encodeURIComponent(title)};end`; if (redirectLink) { document.getElementById('redirect-btn').href = redirectLink; }
if (isAndroid) { window.location.href = intentUri; // Fallback to modal if app not installed setTimeout(() => { if (!document.hidden) { document.getElementById('player-modal').classList.remove('hidden'); document.getElementById('player-modal').classList.add('flex'); } }, 3000); } else { // For Non-Android (Direct link) window.open(streamUrl, '_blank'); 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()); } });
document.getElementById('close-modal').onclick = () => { document.getElementById('player-modal').classList.add('hidden'); }; } else { titleEl.textContent = "Error: Link not found"; } }); </script></body>Player.html+126-76