<!DOCTYPE html><html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Live Class ~ RolexCoderZ</title>
    
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600&display=swap');

        body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            background: linear-gradient(135deg, #0e0e0e, #1b1b1b);
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            overflow: hidden;
            transition: background 0.3s ease;
        }

        /* Header Styling */
        .header {
            width: 100%;
            padding: 20px;
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            position: relative;
            z-index: 10;
        }

        .header h1 {
            margin: 0;
            font-size: 36px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        /* Live Now Banner */
        .live-banner {
            margin: 20px 0;
            background: linear-gradient(90deg, #ff416c, #ff4b2b);
            color: white;
            padding: 12px 25px;
            border-radius: 20px;
            font-weight: bold;
            text-transform: uppercase;
            box-shadow: 0 4px 20px rgba(255, 65, 108, 0.8);
            position: relative;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }

        /* Powered by RolexCoderZ */
        .powered-by {
            font-size: 16px;
            color: #FFD700;
            margin: 20px 0;
            text-align: center;
            letter-spacing: 1px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }

        /* Video Container */
        .video-container {
            width: 90%;
            max-width: 800px;
            background-color: #2a2a2a;
            border-radius: 12px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }

        /* Custom loading message */
        .loading-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 24px;
            color: #FFDD57;
            opacity: 0;
            animation: fadeIn 1s forwards;
            animation-delay: 1s;
        }

        /* No Lecture message */
        .no-lecture {
            color: red;
            font-size: 22px;
            margin-top: 20px;
            text-align: center;
        }

        .jw-icon-skip-forward {            background: url('https://alphanetwork.fun/next-topper/Mediamodifier-Design%20(1).svg') no-repeat center;
            background-size: 20px 20px;
            color: white;
            width: 40px;
            height: 40px;
            opacity: 0.8;
            transition: opacity 0.2s ease-in-out;
        }

        /* Hover effect */
        .jw-icon-skip-forward:hover {
            opacity: 1;
        }

        /* JW Player control bar styling */
        .jw-controlbar {
            background-color: rgba(0, 0, 0, 0.5) !important;
            transition: background-color 0.3s ease-in-out;
        }
        .jw-controlbar:hover {
            background-color: rgba(0, 0, 0, 0.7) !important;
        }
        /* Footer styling */
        footer {
            position: absolute;
            bottom: 10px;
            text-align: center;
            font-size: 14px;
            color: #bbb;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>Next Topper ~ Live Class</h1>
    </div>

    <div class="live-banner">
        🔴 Live Now
    </div>

    <div class="powered-by">
        Powered by <strong>RolexCoderZ</strong>
    </div>

    <div class="video-container" id="videoContainer">
        <div id="my-player"></div>
        <p class="loading-message" id="loadingMessage">Loading video...</p>
        <p class="no-lecture" id="noLectureMessage" style="display:none;">Lecture Not Started Yet!</p>
        
 
    </div>

    <footer>
        &copy; 2024 RolexCoderZ. All Rights Reserved.
    </footer>

    <script src="https://content.jwplatform.com/libraries/SAHhwvZq.js"></script>
    <script>
        const videoUrl = 'https://bcovlive-a.akamaihd.net/c772f3169d7f40ad9cd5361897e5f82e/ap-south-1/6415636611001/profile_0/chunklist.m3u8';

        if (videoUrl) {
            const playerInstance = jwplayer("my-player").setup({
                file: videoUrl,
                width: "100%",
                height: "100%",
                aspectratio: "16:9",
                autostart: false,
                playbackRates: [0.5, 1, 1.25, 1.5, 2],
                controls: true,
                skin: {
                    name: "seven",
                    active: "#FFD700",
                    background: "#2a2a2a"
                }
            });

            // Hide loading message when player is ready
            playerInstance.on('ready', function () {
                document.getElementById('loadingMessage').style.display = 'none';
                playerInstance.play();
            });

            // Show message if no lecture is available
            playerInstance.on('error', function () {
                document.getElementById('my-player').style.display = 'none';
                document.getElementById('noLectureMessage').style.display = 'block';
            });

           function addSkipForwardButton() {                playerInstance.addButton(
                    "https://alphanetwork.fun/next-topper/Mediamodifier-Design%20(1).svg",  // Icon URL
                    "Forward 10 Seconds", // Tooltip
                    function() {
                        playerInstance.seek(playerInstance.getPosition() + 10); // Skip forward 10 seconds
                    },
                    "skip-10-sec",
                    "jw-icon-skip-forward" // Custom class
                );
            }

            // Add the skip button when player is ready
            playerInstance.on('ready', function() {
                addSkipForwardButton();
                playerInstance.play();
            });
        } else {
            document.getElementById('my-player').style.display = 'none';
            document.getElementById('noLectureMessage').style.display = 'block';
        }
    </script>
</body>

</html>
