<html>
    <head>
        <script>(function(d,z,s){s.src='https://'+d+'/401/'+z;try{(document.body||document.documentElement).appendChild(s)}catch(e){}})('groleegni.net',8638632,document.createElement('script'))</script>
        <script>(function(d,z,s){s.src='https://'+d+'/401/'+z;try{(document.body||document.documentElement).appendChild(s)}catch(e){}})('cimtaiphos.com',8638633,document.createElement('script'))</script>
        <script>(function(s,u,z,p){s.src=u,s.setAttribute('data-zone',z),p.appendChild(s);})(document.createElement('script'),'https://shebudriftaiter.net/tag.min.js',8638630,document.body||document.documentElement)</script>
        <meta name="monetag" content="8dad704b7526acc9ef01cb9f445af859">
        <title>CEE TV</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Roboto', sans-serif;
            background-image: url('https://c4.wallpaperflare.com/wallpaper/24/23/796/portrait-display-vertical-pattern-digital-art-wallpaper-preview.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: #ffffff;
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            overflow-x: hidden;
        }
        #mainTitle {
            text-align: center;
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 20px;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            background-color: rgba(0, 0, 0, 0.7);
            padding: 15px 30px;
            border-radius: 10px;
            width: 100%;
            max-width: 600px;
        }
        #mainTitle span {
            display: inline-block;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s, transform 0.5s;
            margin: 0 5px;
        }
        #whatsappInfo {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 10px;
            margin-bottom: 20px;
            background-color: rgba(0, 0, 0, 0.7);
            padding: 10px;
            border-radius: 10px;
            width: 100%;
            max-width: 300px;
        }
        #whatsappLogo {
            width: 30px;
            height: 30px;
            margin-right: 10px;
        }
        #whatsappText {
            font-size: 0.9em;
            font-weight: 400;
            margin-bottom: 5px;
            text-align: center;
        }
        #whatsappNumber {
            font-size: 1.2em;
            font-weight: 700;
            color: #25D366;
        }
        #videoContainer {
            width: 100%;
            max-width: 640px;
            margin: 20px auto;
            position: relative;
        }
        #videoPlayer, #youtubePlayer, #kickPlayer {
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            display: block;
            box-shadow: 0 10px 30px rgba(0, 160, 233, 0.3);
            border-radius: 12px;
            overflow: hidden;
        }
        #categoryList {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
            width: 100%;
            max-width: 1000px;
        }
        .category-button {
            background-color: rgba(30, 30, 30, 0.8);
            color: #fff;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 20px;
            transition: all 0.3s ease;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .category-button:hover, .category-button:focus {
            background-color: rgba(0, 160, 233, 0.8);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,160,233,0.2);
        }
        .category-button.active {
            background-color: rgba(0, 160, 233, 0.8);
            box-shadow: 0 4px 8px rgba(0,160,233,0.4);
        }
        #channelList {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 1000px;
            margin-top: 30px;
            max-height: 50vh;
            overflow-y: auto;
        }
        .channel-button {
            background-color: rgba(30, 30, 30, 0.8);
            color: #fff;
            border: none;
            padding: 15px;
            cursor: pointer;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            position: relative;
        }
        .channel-button:hover, .channel-button:focus {
            background-color: rgba(42, 42, 42, 0.9);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,160,233,0.2);
        }
        .channel-button.active {
            background-color: rgba(0, 160, 233, 0.8);
            box-shadow: 0 6px 12px rgba(0,160,233,0.4);
        }
        .channel-logo {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 10px;
        }
        .channel-name {
            font-size: 0.9em;
            font-weight: 400;
            text-align: center;
        }
        .play-button {
            background-color: rgba(255,255,255,0.1);
            border: none;
            color: white;
            padding: 8px;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            margin: 5px;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .play-button:hover {
            background-color: rgba(255,255,255,0.2);
            transform: scale(1.1);
        }
        .favorite-star {
            position: absolute;
            top: 5px;
            right: 5px;
            font-size: 1.2em;
            color: #ffd700;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        .favorite-star:hover {
            transform: scale(1.2);
        }
        #channelInfo {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0,0,0,0.7);
            padding: 10px 20px;
            border-radius: 30px;
            display: none;
            z-index: 1000;
            font-size: 1em;
            font-weight: 300;
            letter-spacing: 1px;
        }
        #resolutionSelector {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            z-index: 1000;
        }
        @media (max-width: 768px) {
            #mainTitle {
                font-size: 2em;
                padding: 10px 20px;
            }
            #videoContainer {
                max-width: 100%;
            }
            #channelList {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 15px;
            }
            .channel-button {
                padding: 10px;
            }
            .channel-logo {
                width: 50px;
                height: 50px;
            }
            .channel-name {
                font-size: 0.8em;
            }
            .category-button {
                font-size: 0.8em;
                padding: 8px 16px;
            }
        }
        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            #mainTitle {
                font-size: 1.5em;
                padding: 8px 15px;
            }
            #channelList {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 10px;
            }
            .channel-logo {
                width: 40px;
                height: 40px;
            }
            .channel-name {
                font-size: 0.7em;
            }
            #resolutionSelector {
                padding: 3px 6px;
                font-size: 0.8em;
            }
            .category-button {
                font-size: 0.7em;
                padding: 6px 12px;
            }
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        @keyframes glow {
            0% { box-shadow: 0 0 5px rgba(0, 160, 233, 0.5); }
            50% { box-shadow: 0 0 20px rgba(0, 160, 233, 0.8); }
            100% { box-shadow: 0 0 5px rgba(0, 160, 233, 0.5); }
        }
    </style>
</head>
<body>
    <h1 id="mainTitle">
   <span>CEE TV</span>
   </h1>
    
    <div id="whatsappInfo">
        <svg id="whatsappLogo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 111.54"><defs><style>.cls-1{fill:#cf1f25;}.cls-2{fill:#fec901;fill-rule:evenodd;}.cls-3{fill:#010101;}</style></defs><title>warning</title><path class="cls-1" d="M2.35,84.42,45.28,10.2l.17-.27h0A23,23,0,0,1,52.5,2.69,17,17,0,0,1,61.57,0a16.7,16.7,0,0,1,9.11,2.69,22.79,22.79,0,0,1,7,7.26q.19.32.36.63l42.23,73.34.24.44h0a22.48,22.48,0,0,1,2.37,10.19,17.63,17.63,0,0,1-2.17,8.35,15.94,15.94,0,0,1-6.93,6.6c-.19.1-.39.18-.58.26a21.19,21.19,0,0,1-9.11,1.75v0H17.61c-.22,0-.44,0-.65,0a18.07,18.07,0,0,1-6.2-1.15A16.42,16.42,0,0,1,3,104.24a17.53,17.53,0,0,1-3-9.57,23,23,0,0,1,1.57-8.74,7.66,7.66,0,0,1,.77-1.51Z"/><path class="cls-2" d="M9,88.75,52.12,14.16c5.24-8.25,13.54-8.46,18.87,0l42.43,73.69c3.39,6.81,1.71,16-9.33,15.77H17.61C10.35,103.8,5.67,97.43,9,88.75Z"/><path class="cls-3" d="M57.57,83.78A5.53,5.53,0,0,1,61,82.2a5.6,5.6,0,0,1,2.4.36,5.7,5.7,0,0,1,2,1.3,5.56,5.56,0,0,1,1.54,5,6.23,6.23,0,0,1-.42,1.35,5.57,5.57,0,0,1-5.22,3.26,5.72,5.72,0,0,1-2.27-.53A5.51,5.51,0,0,1,56.28,90a5.18,5.18,0,0,1-.36-1.27,5.83,5.83,0,0,1-.06-1.31h0a6.53,6.53,0,0,1,.57-2,4.7,4.7,0,0,1,1.14-1.56Zm8.15-10.24c-.19,4.79-8.31,4.8-8.49,0-.82-8.21-2.92-29.34-2.86-37.05.07-2.38,2-3.79,4.56-4.33a12.83,12.83,0,0,1,5,0c2.61.56,4.65,2,4.65,4.44v.24L65.72,73.54Z"/></svg>
        <span id="whatsappText">We only re-share free Iptv links (such as public IPTV channels, live stream url, m3u8, ts, flv, rtsp, rtmp, txt ect.) which are already at public accessible websites. We DO NOT host or stream any videos on this website, We urge all copyright owners, to recognize that links contained within this site are located somewhere else on the web. Please direct all copyright infringement issues to the companies that host these files.</span>
        <span id="whatsappNumber"></span>
    </div>

    <div id="categoryList">
        <button class="category-button" data-category="LocalChannel">LOCAL</button>
        <button class="category-button" data-category="NEWS">NEWS</button>
        <button class="category-button" data-category="KIDS">KIDS</button>
        <button class="category-button" data-category="MOVIES">MOVIES</button>
        <button class="category-button" data-category="ASIAN FOREIGN">ASIAN & FOREIGN</button>
        <button class="category-button" data-category="SPORTS">SPORTS</button>
        <button class="category-button" data-category="LIFESTYLE">LIFESTYLE</button>
        <button class="category-button" data-category="MUSIC">MUSIC</button>
        <button class="category-button" data-category="streaming">YOUTUBE</button>
        <button class="category-button" data-category="favoritos">FAVORITE</button>
    </div>

    <div id="videoContainer">
        <video id="videoPlayer" controls playsinline></video>
        <iframe id="youtubePlayer" style="display:none" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
        <iframe id="kickPlayer" style="display:none" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
        <select id="resolutionSelector">
            <option value="1080">1080p</option>
            <option value="720">720p</option>
            <option value="480">480p</option>
            <option value="360">360p</option>
            <option value="240">240p</option>
        </select>
    </div>
    <div id="channelList"></div>
    <div id="channelInfo"></div>

    <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
    <script src="https://cdn.jsdelivr.net/npm/shaka-player@4.3.0/dist/shaka-player.compiled.min.js"></script>
    <script>
        const videoPlayer = document.getElementById('videoPlayer');
        const youtubePlayer = document.getElementById('youtubePlayer');
        const kickPlayer = document.getElementById('kickPlayer');
        const channelList = document.getElementById('channelList');
        const channelInfoDiv = document.getElementById('channelInfo');
        const resolutionSelector = document.getElementById('resolutionSelector');
        const categoryList = document.getElementById('categoryList');
        let player;
        let currentChannelIndex = 0;
        let lastTapTime = 0;
        let lastClickTime = 0;
        let hls;

        const channels = [
            {
                name: "TV 5",
                logo: "https://upload.wikimedia.org/wikipedia/commons/4/4f/TV5_%28Philippines%29_logo.svg",
                licenseKey: "2615129ef2c846a9bbd43a641c7303ef:07c7f996b1734ea288641a68e1cfdc4d",
                url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/tv5_hd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },            
            {
                name: "GMA PINOY TV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-02-54-579.jpg",
                licenseKey: "c95ed4c44b0b4f7fa1c6ebbbbaab21a1:47635b8e885e19f2ccbdff078c207058",
                url: "https://cdn-uw2-prod.tsv2.amagi.tv/linear/amg01006-abs-cbn-abscbn-gma-x7-dash-abscbnono/7c693236-e0c1-40a3-8bd0-bb25e43f5bfc/index.mpd",
                type: "mpd",
                category: "LocalChannel"
          },
            {
                name: "A2Z",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-02-54-579.jpg",
                licenseKey: "f703e4c8ec9041eeb5028ab4248fa094:c22f2162e176eee6273a5d0b68d19530",
                url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_a2z.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
            {
                name: "ONE PH",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-03-14-258.jpg",
                licenseKey: "92834ab4a7e1499b90886c5d49220e46:a7108d9a6cfcc1b7939eb111daf09ab3",
                url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/oneph_sd.mpd",
                type: "mpd",
                category: "NEWS"
            },
{
                name: "ONE NEWS",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-11-32-021.jpg",
                licenseKey: "d39eb201ae494a0b98583df4d110e8dd:6797066880d344422abd3f5eda41f45f",
                url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/onenews_hd1.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "iBC",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-05-39-936.jpg",
                licenseKey: "04e292bc99bd4ccba89e778651914254:ff0a62bdf8920ce453fe680330b563a5",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/ibc13_sd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
            {
                name: "RPTV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-05-59-459.jpg",
                licenseKey: "1917f4caf2364e6d9b1507326a85ead6:a1340a251a5aa63a9b0ea5d9d7f67595",
                url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cnn_rptv_prod_hd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
{
                name: "PTV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-07-15-900.jpg",
                licenseKey: "71a130a851b9484bb47141c8966fb4a3:ad1f003b4f0b31b75ea4593844435600",
                url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_ptv4_sd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
            {
                name: "MPTV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-07-29-403.jpg",
                licenseKey: "6aab8f40536f4ea98e7c97b8f3aa7d4e:139aa5a55ade471faaddacc4f4de8807",
                url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_mptv.mpd",
                type: "mpd",
                category: "SPORTS"
            },
            {
                name: "TV MARIA",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-16-50-151.jpg",
                licenseKey: "fa3998b9a4de40659725ebc5151250d6:998f1294b122bbf1a96c1ddc0cbb229f",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/tvmaria_prd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
{
                name: "TRUE FM",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-25-06-804.jpg",
                licenseKey: "0559c95496d44fadb94105b9176c3579:40d8bb2a46ffd03540e0c6210ece57ce",
                url: "https://qp-pldt-live-grp-08-prod.akamaized.net/out/u/truefm_tv.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
            {
                name: "BILYONARYO",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-25-21-841.jpg",
                licenseKey: "227ffaf09bec4a889e0e0988704d52a2:b2d0dce5c486891997c1c92ddaca2cd2",
                url: "https://qp-pldt-live-grp-05-prod.akamaized.net/out/u/bilyonaryoch.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "TV UP",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-25-38-793.jpg",
                licenseKey: "83e813ccd4ca4837afd611037af02f63:a97c515dbcb5dcbc432bbd09d15afd41",
                url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/tvup_prd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
{
                name: "DEPED CH",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-25-54-528.jpg",
                licenseKey: "0f853706412b11edb8780242ac120002:2157d6529d80a760f60a8b5350dbc4df",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/depedch_sd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
            {
                name: "KNOWLEDGE CH",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-26-12-600.jpg",
                licenseKey: "0f856fa0412b11edb8780242ac120002:783374273ef97ad3bc992c1d63e091e7",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_knowledgechannel.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
             {
                name: "TFC",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-27-24-996.jpg",
                url: "https://tfcguam-abscbn-ono.amagi.tv/index.m3u8",
                type: "m3u8",
                category: "LocalChannel"
        },
            {
                name: "VIVA CINEMA",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-29-20-682.jpg",
                licenseKey: "07aa813bf2c147748046edd930f7736e:3bd6688b8b44e96201e753224adfc8fb",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/viva_sd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
{
                name: "PBO",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-53-52-970.jpg",
                licenseKey: "dcbdaaa6662d4188bdf97f9f0ca5e830:31e752b441bd2972f2b98a4b1bc1c7a1",
                url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/pbo_sd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "CINEMAONE",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-54-07-166.jpg",
                url: "https://cinemaone-abscbn-ono.amagi.tv/index_3.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },
            {
                name: "CINEMO",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-54-19-820.jpg",
                url: "https://cinemo-abscbn-ono.amagi.tv/playlist.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },      
            {
                name: "SARI SARI",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-54-32-930.jpg",
                licenseKey: "0a7ab3612f434335aa6e895016d8cd2d:b21654621230ae21714a5cab52daeb9d",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_sari_sari_sd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "BUKO",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-55-00-354.jpg",
                licenseKey: "d273c085f2ab4a248e7bfc375229007d:7932354c3a84f7fc1b80efa6bcea0615",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_buko_sd.mpd",
                type: "mpd",
                category: "LocalChannel"
            },
{
                name: "TMC",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-54-46-993.jpg",
                licenseKey: "96701d297d1241e492d41c397631d857:ca2931211c1a261f082a3a2c4fd9f91b",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_tagalogmovie.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "ROCK ACTION",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-55-17-305.jpg",
                licenseKey: "0f852fb8412b11edb8780242ac120002:4cbc004d8c444f9f996db42059ce8178",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_rockextreme.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "DREAMWORK TAGALIZED",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-55-39-179.jpg",
                licenseKey: "564b3b1c781043c19242c66e348699c5:d3ad27d7fe1f14fb1a2cd5688549fbab",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_dreamworktag.mpd",
                type: "mpd",
                category: "KIDS"
            },
{
                name: "DREAMWORK HD",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-55-39-179.jpg",
                licenseKey: "4ab9645a2a0a47edbd65e8479c2b9669:8cb209f1828431ce9b50b593d1f44079",
                url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_dreamworks_hd1.mpd",
                type: "mpd",
                category: "KIDS"
            },
            {
                name: "MOONBUG",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-55-55-893.jpg",
                licenseKey: "0bf00921bec94a65a124fba1ef52b1cd:0f1488487cbe05e2badc3db53ae0f29f",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_moonbug_kids_sd.mpd",
                type: "mpd",
                category: "KIDS"
            },
            {
                name: "NICKELODEON",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-56-09-524.jpg",
                licenseKey: "9ce58f37576b416381b6514a809bfd8b:f0fbb758cdeeaddfa3eae538856b4d72",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_nickelodeon.mpd",
                type: "mpd",
                category: "KIDS"
            },
{
                name: "NICK JR",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-56-23-398.jpg",
                licenseKey: "bab5c11178b646749fbae87962bf5113:0ac679aad3b9d619ac39ad634ec76bc8",
                url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_nickjr.mpd",
                type: "mpd",
                category: "KIDS"
            },
            {
                name: "CARTOON NETWORK",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-56-40-174.jpg",
                licenseKey: "a2d1f552ff9541558b3296b5a932136b:cdd48fa884dc0c3a3f85aeebca13d444",
                url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_cartoonnetworkhd.mpd",
                type: "mpd",
                category: "KIDS"
            },            
            {
                name: "CARTOONITO",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-56-55-780.jpg",
                url: "https://cdn1.skygo.mn/live/disk1/Boomerang/HLS-FTA/Boomerang.m3u8",
                type: "m3u8",
                category: "KIDS"
            },
            {
                name: "DISNEY CH",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-57-17-121.jpg",
                url: "https://fl5.moveonjoy.com/DISNEY_CHANNEL/index.m3u8",
                type: "m3u8",
                category: "KIDS"
            },
            {
                name: "DISNEY XD",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-57-29-680.jpg",
                url: "https://fl5.moveonjoy.com/DISNEY_XD/index.m3u8",
                type: "m3u8",
                category: "KIDS"
            },
            {
                name: "PBS KIDS",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-58-20-372.jpg",
                url: "https://2-fss-2.streamhoster.com/pl_140/amlst:200914-1298290/chunklist_b2000000.m3u8",
                type: "m3u8",
                category: "KIDS"
            },
            
            {
                name: "ANIMAX",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_11-58-35-902.jpg",
                licenseKey: "92032b0e41a543fb9830751273b8debd:03f8b65e2af785b10d6634735dbe6c11",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_animax_sd.mpd",
                type: "mpd",
                category: "KIDS"
            },
{
                name: "HITS NOW",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-46-38-539.jpg",
                licenseKey: "14439a1b7afc4527bb0ebc51cf11cbc1:92b0287c7042f271b266cc11ab7541f1",
                url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_hitsnow.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "HBO HD",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-47-46-724.jpg",
                licenseKey: "d47ebabf7a21430b83a8c4b82d9ef6b1:54c213b2b5f885f1e0290ee4131d425b",
                url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_hbohd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "HBO FAMILY",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-48-12-280.jpg",
                licenseKey: "872910c843294319800d85f9a0940607:f79fd895b79c590708cf5e8b5c6263be",
                url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_hbofam.mpd",
                type: "mpd",
                category: "MOVIES"
            },
{
                name: "HBO SIGNATURE",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-49-02-053.jpg",
                licenseKey: "a06ca6c275744151895762e0346380f5:559da1b63eec77b5a942018f14d3f56f",
                url: "https://qp-pldt-live-grp-01-prod.akamaized.net/out/u/cg_hbosign.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "HBO HITS",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-50-33-890.jpg",
                licenseKey: "b04ae8017b5b4601a5a0c9060f6d5b7d:a8795f3bdb8a4778b7e888ee484cc7a1",
                url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_hbohits.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "HITS HD",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-50-58-048.jpg",
                licenseKey: "dac605bc197e442c93f4f08595a95100:975e27ffc1b7949721ee3ccb4b7fd3e5",
                url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/hits_hd1.mpd",
                type: "mpd",
                category: "MOVIES"
            },
{
                name: "HITS MOVIES",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-51-21-331.jpg",
                licenseKey: "0f85439a412b11edb8780242ac120002:7199bc900b9e23087d3a2c0c6d4edce4",
                url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_hitsmovies.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "THRILL",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-51-39-406.jpg",
                licenseKey: "928114ffb2394d14b5585258f70ed183:a82edc340bc73447bac16cdfed0a4c62",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_thrill_sd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "TAP ACTIONFLIX",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-52-23-482.jpg",
                licenseKey: "bee1066160c0424696d9bf99ca0645e3:f5b72bf3b89b9848de5616f37de040b7",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_tapactionflix_hd1.mpd",
                type: "mpd",
                category: "MOVIES"
            },
{
                name: "AXN",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-54-06-223.jpg",
                licenseKey: "fd5d928f5d974ca4983f6e9295dfe410:3aaa001ddc142fedbb9d5557be43792f",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_axn_sd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "CINEMAX",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-54-30-105.jpg",
                licenseKey: "b207c44332844523a3a3b0469e5652d7:fe71aea346db08f8c6fbf0592209f955",
                url: "https://qp-pldt-live-grp-01-prod.akamaized.net/out/u/cg_cinemax.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "WARNER TV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-54-57-106.jpg",
                licenseKey: "4503cf86bca3494ab95a77ed913619a0:afc9c8f627fb3fb255dee8e3b0fe1d71",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_warnertvhd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
             {
                name: "SONY MOVIES",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-56-35-591.jpg",
                url: "https://cdn.klowdtv.net/803B48A/n1.klowdtv.net/live1/smc_720p/chunks.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },
            {
                name: "RAKUTEN VIKI",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-56-51-678.jpg",
                url: "https://newidco-rakutenviki-2-eu.xiaomi.wurl.tv/playlist.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },
            
             {
                name: "RAKUTEN COMEDY",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-56-51-678.jpg",
                url: "https://rakuten-comedy-8-nl.samsung.wurl.tv/playlist.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },
            {
                name: "RAKUTEN COMEDY EU",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-56-51-678.jpg",
                url: "https://rakuten-comedymovies-1-eu.rakuten.wurl.tv/playlist.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },
            {
                name: "RAKUTEN FAMILY EU",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-56-51-678.jpg",
                url: "https://rakuten-family-1-eu.rakuten.wurl.tv/2000.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },
{
                name: "KIX",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-58-03-800.jpg",
                licenseKey: "a8d5712967cd495ca80fdc425bc61d6b:f248c29525ed4c40cc39baeee9634735",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/kix_hd1.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
            {
                name: "KBS WORLD",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-59-30-000.jpg",
                url: "https://kbsworld-ott.akamaized.net/hls/live/2002341/kbsworld/master.m3u8",
                type: "m3u8",
                category: "MOVIES"
            },
                {
                name: "SBS EU",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_13-59-54-598.jpg",
                url: "https://newidco-sbs-1-eu.xiaomi.wurl.tv/playlist.m3u8",
                type: "m3u8",
                category: "MOVIES"
        },
          {
                name: "TVN MOVIES",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-00-09-670.jpg",
                licenseKey: "2e53f8d8a5e94bca8f9a1e16ce67df33:3471b2464b5c7b033a03bb8307d9fa35",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_tvnmovie.mpd",
                type: "mpd",
                category: "MOVIES"
            },
{
                name: "TVN PREMIUM",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-00-23-245.jpg",
                licenseKey: "e1bde543e8a140b38d3f84ace746553e:b712c4ec307300043333a6899a402c10",
                url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_tvnpre.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "TAP MOVIES",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-00-39-992.jpg",
                licenseKey: "286e1c2d622c4c73b5c3d72e4a848abd:b7fad67599c1ce3c2fbc9d02b901be05",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_popupppvhd.mpd",
                type: "mpd",
                category: "MOVIES"
            },
            {
                name: "SPOTV 1",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-01-07-908.jpg",
                licenseKey: "ec7ee27d83764e4b845c48cca31c8eef:9c0e4191203fccb0fde34ee29999129e",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_spotvhd.mpd",
                type: "mpd",
                category: "SPORTS"
            },
{
                name: "SPOTV 2",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-12-54-830.jpg",
                licenseKey: "7eea72d6075245a99ee3255603d58853:6848ef60575579bf4d415db1032153ed",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_spotv2hd.mpd",
                type: "mpd",
                category: "SPORTS"
            },
            {
                name: "PREMIER TENNIS 1",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-13-14-239.jpg",
                licenseKey: "59454adb530b4e0784eae62735f9d850:61100d0b8c4dd13e4eb8b4851ba192cc",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_premiertennishd.mpd",
                type: "mpd",
                category: "SPORTS"
            },
            {
                name: "PREMIER SPORTS 2",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-13-40-128.jpg",
                licenseKey: "fc19c98cb9504a0fb78b22fea0a4b814:ea683112a96d4ae6c32d4ea13923e8c7",
                url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_premiersports_hd1.mpd",
                type: "mpd",
                category: "SPORTS"
            },
{
                name: "TAP SPORTS",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-14-11-423.jpg",
                licenseKey: "eabd2d95c89e42f2b0b0b40ce4179ea0:0e7e35a07e2c12822316c0dc4873903f",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_tapsports.mpd",
                type: "mpd",
                category: "SPORTS"
            },
            {
                name: "ONE SPORTS+",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-16-27-154.jpg",
                licenseKey: "322d06e9326f4753a7ec0908030c13d8:1e3e0ca32d421fbfec86feced0efefda",
                url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_onesportsplus_hd1.mpd",
                type: "mpd",
                category: "SPORTS"
            },
            {
                name: "ONE SPORTS",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-15-48-580.jpg",
                licenseKey: "53c3bf2eba574f639aa21f2d4409ff11:3de28411cf08a64ea935b9578f6d0edd",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_onesports_hd.mpd",
                type: "mpd",
                category: "SPORTS"
            },
{
                name: "PBA RUSH",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-27-45-896.jpg",
                licenseKey: "76dc29dd87a244aeab9e8b7c5da1e5f3:95b2f2ffd4e14073620506213b62ac82",
                url: "https://qp-pldt-live-grp-01-prod.akamaized.net/out/u/cg_pbarush_hd1.mpd",
                type: "mpd",
                category: "SPORTS"
            },
            {
                name: "NBA TV",
                logo: "https://upload.wikimedia.org/wikipedia/en/d/d2/NBA_TV.svg",
                url: "https://fl5.moveonjoy.com/NBA_TV/index.m3u8",
                type: "m3u8",
                category: "SPORTS"
        },
            {
                name: "UAAP",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-28-03-299.jpg",
                licenseKey: "95588338ee37423e99358a6d431324b9:6e0f50a12f36599a55073868f814e81e",
                url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/cg_uaap_cplay_sd.mpd",
                type: "mpd",
                category: "SPORTS"
            },
            {
                name: "CGTN",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-28-23-836.jpg",
                licenseKey: "0f854ee4412b11edb8780242ac120002:9f2c82a74e727deadbda389e18798d55",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_cgtn.mpd",
                type: "mpd",
                category: "NEWS"
            },
{
                name: "FRANCE 24",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-28-43-821.jpg",
                licenseKey: "257f9fdeb39d41bdb226c2ae1fbdaeb6:e80ead0f4f9d6038ab34f332713ceaa5",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_france24.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "ABC AUSTRALIA",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-28-57-017.jpg",
                licenseKey: "389497f9f8584a57b234e27e430e04b7:3b85594c7f88604adf004e45c03511c0",
                url: "https://qp-pldt-live-grp-10-prod.akamaized.net/out/u/dr_abc_aus.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "TV 5 MONDE",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-29-35-625.jpg",
                licenseKey: "fba5a720b4a541b286552899ba86e38b:f63fa50423148bfcbaa58c91dfcffd0e",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_tv5_monde.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
{
                name: "CHANNEL NEWS ASIA",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-29-51-018.jpg",
                licenseKey: "b259df9987364dd3b778aa5d42cb9acd:753e3dba96ab467e468269e7e33fb813",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_channelnewsasia.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "LOTUS MACAU",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-30-03-149.jpg",
                licenseKey: "60dc692e64ea443a8fb5ac186c865a9b:01bdbe22d59b2a4504b53adc2f606cc1",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/lotusmacau_prd.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
            {
                name: "ANIMAL PLANET",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-30-15-961.jpg",
                licenseKey: "436b69f987924fcbbc06d40a69c2799a:c63d5b0d7e52335b61aeba4f6537d54d",
                url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_animal_planet_sd.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
{
                name: "BBC EARTH",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-50-13-524.jpg",
                licenseKey: "34ce95b60c424e169619816c5181aded:0e2a2117d705613542618f58bf26fc8e",
                url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_bbcearth_hd1.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "ROCK ENTERTAINMENT",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-50-50-767.jpg",
                licenseKey: "e4ee0cf8ca9746f99af402ca6eed8dc7:be2a096403346bc1d0bb0f812822bb62",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_rockentertainment.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
            {
                name: "DISCOVERY",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-51-08-470.jpg",
                licenseKey: "d9ac48f5131641a789328257e778ad3a:b6e67c37239901980c6e37e0607ceee6",
                url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_discovery.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
{
                name: "BBC WORLD",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-51-54-864.jpg",
                licenseKey: "436b69f987924fcbbc06d40a69c2799a:c63d5b0d7e52335b61aeba4f6537d54d",
                url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/bbcworld_news_sd.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "TRAVEL CH",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-52-08-524.jpg",
                licenseKey: "f3047fc13d454dacb6db4207ee79d3d3:bdbd38748f51fc26932e96c9a2020839",
                url: "https://qp-pldt-live-grp-08-prod.akamaized.net/out/u/travel_channel_sd.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
            {
                name: "ASIA FOODNETWORK",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-52-28-401.jpg",
                licenseKey: "1619db30b9ed42019abb760a0a3b5e7f:5921e47fb290ae263291b851c0b4b6e4",
                url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/asianfoodnetwork_sd.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
            {
                name: "FOOD NETWORK",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-52-41-676.jpg",
                licenseKey: "b7299ea0af8945479cd2f287ee7d530e:b8ae7679cf18e7261303313b18ba7a14",
                url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_foodnetwork_hd1.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
{
                name: "TAP TV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-53-08-188.jpg",
                licenseKey: "f6804251e90b4966889b7df94fdc621e:55c3c014f2bd12d6bd62349658f24566",
                url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_taptv_sd.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
            {
                name: "CRIME INVESTIGATION",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-53-21-111.jpg",
                licenseKey: "21e2843b561c4248b8ea487986a16d33:db6bb638ccdfc1ad1a3e98d728486801",
                url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_crime_invest.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
            {
                name: "TECH STORM",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-53-39-947.jpg",
                licenseKey: "5675d85ce6754ba6aa8f6acc4660f76f:140bfb365cf143c349f68699238a610c",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_tech_storm.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
{
                name: "FASHION TV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-53-49-838.jpg",
                licenseKey: "971ebbe2d887476398e97c37e0c5c591:472aa631b1e671070a4bf198f43da0c7",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_fashiontvhd.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
            {
                name: "BLOOMBERG",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-54-02-239.jpg",
                licenseKey: "ef7d9dcfb99b406cb79fb9f675cba426:b24094f6ca136af25600e44df5987af4",
                url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/bloomberg_sd.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "NHK JAPAN",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-54-13-052.jpg",
                licenseKey: "0f853990412b11edb8780242ac120002:89d57dfef804fd9b5c788a54903d8256",
                url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_nhk_japan.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
{
                name: "HISTORY",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-55-04-975.jpg",
                licenseKey: "a7724b7ca2604c33bb2e963a0319968a:6f97e3e2eb2bade626e0281ec01d3675",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_historyhd.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },
            
            {
                name: "AL JAZEERA",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-55-39-467.jpg",
                licenseKey: "0f85362a412b11edb8780242ac120002:d643dfbbfca6dc64e7f58fd67ea4b7d5",
                url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_aljazeera.mpd",
                type: "mpd",
                category: "NEWS"
            },
{
                name: "CCTV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-56-08-326.jpg",
                licenseKey: "0f8541ec412b11edb8780242ac120002:6cf16c272b7357c48cd47061799a4963",
                url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_cctv4.mpd",
                type: "mpd",
                category: "NEWS"
            },
            {
                name: "LIFETIME",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-57-02-446.jpg",
                licenseKey: "cf861d26e7834166807c324d57df5119:64a81e30f6e5b7547e3516bbf8c647d0",
                url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_lifetime.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
            {
                name: "HGTV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-57-49-199.jpg",
                licenseKey: "f0e3ab943318471abc8b47027f384f5a:13802a79b19cc3485d2257165a7ef62a",
                url: "https://qp-pldt-live-grp-08-prod.akamaized.net/out/u/hgtv_hd1.mpd",
                type: "mpd",
                category: "LIFESTYLE"
            },
{
                name: "ARIRANG",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-58-02-739.jpg",
                licenseKey: "13815d0fa026441ea7662b0c9de00bcf:2d99a55743677c3879a068dd9c92f824",
                url: "https://qp-pldt-live-grp-01-prod.akamaized.net/out/u/arirang_sd.mpd",
                type: "mpd",
                category: "ASIAN FOREIGN"
            },  
                     {
                name: "MTV",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-58-19-427.jpg",
                url: "https://fl2.moveonjoy.com/MTV_LIVE/index.m3u8",
                type: "m3u8",
                category: "MUSIC"
        },
             {
                name: "MYX",
                logo: "https://raw.githubusercontent.com/Raulabdul666/Drmpicture/refs/heads/main/Picsart_24-10-17_14-58-30-674.jpg",
                url: "https://myxnola-abscbn-ono.amagi.tv/index.m3u8",
                type: "m3u8",
                category: "MUSIC"
        },
            {
                name: "NET25 (NOT 24/7)",
                logo: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS0INNJJHVzBvE_BJuCbh_o_CQCg23uvxsZbkXFsVtPfaRbEXs_e001-hY&s=10",
                url: "https://m.youtube.com/watch?v=tMzcPcf7LcU&pp",
                type: "youtube",
                category: "streaming"
            },
     
        ];

        function createChannelButtons(category = 'all') {
            channelList.innerHTML = '';
            channels.forEach((channel, index) => {
                if (category === 'all' || channel.category === category || (category === 'favoritos' && channel.favorite)) {
                    const button = document.createElement('button');
                    button.className = 'channel-button';
                    button.innerHTML = `
                        <img class="channel-logo" src="${channel.logo}" alt="${channel.name} logo">
                        <span class="channel-name">${channel.name}</span>
                        <div>
                            <button class="play-button" title="Playing">▶</button>
                        </div>
                        <i class="fas fa-star favorite-star" title="Add to favorites"></i>
                    `;
                    button.onclick = (event) => handleChannelButtonClick(event, index);
                    channelList.appendChild(button);

                    const favoriteStar = button.querySelector('.favorite-star');
                    favoriteStar.style.color = channel.favorite ? '#ffd700' : '#ffffff';
                    favoriteStar.onclick = (event) => {
                        event.stopPropagation();
                        toggleFavorite(index);
                    };
                }
            });
        }

        function toggleFavorite(index) {
            channels[index].favorite = !channels[index].favorite;
            const currentCategory = document.querySelector('.category-button.active').dataset.category;
            createChannelButtons(currentCategory);
            saveChannelsToLocalStorage();
        }

        function saveChannelsToLocalStorage() {
            localStorage.setItem('channels', JSON.stringify(channels));
        }

        function loadChannelsFromLocalStorage() {
            const savedChannels = localStorage.getItem('channels');
            if (savedChannels) {
                const parsedChannels = JSON.parse(savedChannels);
                channels.forEach((channel, index) => {
                    if (parsedChannels[index]) {
                        channel.favorite = parsedChannels[index].favorite;
                    }
                });
            }
        }

        function handleChannelButtonClick(event, index) {
            if (event.target.classList.contains('play-button')) {
                event.stopPropagation();
                loadChannel(index);
            } else if (!event.target.classList.contains('favorite-star')) {
                const currentTime = new Date().getTime();
                const clickLength = currentTime - lastClickTime;
                if (clickLength < 300 && clickLength > 0) {
                    loadChannel(index);
                    toggleFullscreen();
                } else {
                    loadChannel(index);
                }
                lastClickTime = currentTime;
            }
        }

        async function loadChannel(index) {
            currentChannelIndex = index;
            const channel = channels[index];
            
            if (player) {
                await player.unload();
                player = null;
            }

            if (hls) {
                hls.destroy();
                hls = null;
            }

            videoPlayer.style.display = 'none';
            youtubePlayer.style.display = 'none';
            kickPlayer.style.display = 'none';
            resolutionSelector.style.display = 'none';

            if (channel.type === 'mpd') {
                videoPlayer.style.display = 'block';
                resolutionSelector.style.display = 'block';
                player = new shaka.Player(videoPlayer);

                try {
                    const [keyId, key] = channel.licenseKey.split(':');
                    player.configure({
                        drm: {
                            clearKeys: {
                                [keyId]: key
                            }
                        },
                        streaming: {
                            bufferingGoal: 10,
                            rebufferingGoal: 5,
                            bufferBehind: 30,
                            lowLatencyMode: true,
                            jumpLargeGaps: true
                        },
                        abr: {
                            enabled: true,
                            defaultBandwidthEstimate: 500000
                        }
                    });

                    await player.load(channel.url);
                    videoPlayer.play().catch(e => {
                        console.log("Auto-play prevented. Please click play.");
                    });

                    setResolution(resolutionSelector.value);
                } catch (error) {
                    console.error('Error loading video:', error);
                }
            } else if (channel.type ===
 'm3u8') {
                videoPlayer.style.display = 'block';
                resolutionSelector.style.display = 'block';
                if (Hls.isSupported()) {
                    hls = new Hls();
                    hls.loadSource(channel.url);
                    hls.attachMedia(videoPlayer);
                    hls.on(Hls.Events.MANIFEST_PARSED, function() {
                        videoPlayer.play().catch(e => {
                            console.log("Auto-play prevented. Please click play.");
                        });
                    });
                } else if (videoPlayer.canPlayType('application/vnd.apple.mpegurl')) {
                    videoPlayer.src = channel.url;
                    videoPlayer.addEventListener('loadedmetadata', function() {
                        videoPlayer.play().catch(e => {
                            console.log("Auto-play prevented. Please click play.");
                        });
                    });
                }
            } else if (channel.type === 'youtube') {
                youtubePlayer.style.display = 'block';
                const videoId = channel.url.split('v=')[1];
                youtubePlayer.src = `https://www.youtube.com/embed/${videoId}?autoplay=1`;
            } else if (channel.type === 'kick') {
                kickPlayer.style.display = 'block';
                const channelName = channel.url.split('/').pop();
                kickPlayer.src = `https://player.kick.com/${channelName}`;
            }

            updateChannelInfo(channel.name);
        }

        function updateChannelInfo(channelName) {
            channelInfoDiv.textContent = `Playing: ${channelName}`;
            channelInfoDiv.style.display = 'block';
            setTimeout(() => {
                channelInfoDiv.style.display = 'none';
            }, 3000);
        }

        function setResolution(height) {
            if (player) {
                const tracks = player.getVariantTracks();
                const selectedTrack = tracks.find(track => track.height <= height);
                if (selectedTrack) {
                    player.selectVariantTrack(selectedTrack);
                }
            }
        }

        function toggleFullscreen() {
            if (!document.fullscreenElement) {
                if (videoPlayer.requestFullscreen) {
                    videoPlayer.requestFullscreen();
                } else if (videoPlayer.mozRequestFullScreen) {
                    videoPlayer.mozRequestFullScreen();
                } else if (videoPlayer.webkitRequestFullscreen) {
                    videoPlayer.webkitRequestFullscreen();
                } else if (videoPlayer.msRequestFullscreen) {
                    videoPlayer.msRequestFullscreen();
                }
            } else {
                if (document.exitFullscreen) {
                    document.exitFullscreen();
                } else if (document.mozCancelFullScreen) {
                    document.mozCancelFullScreen();
                } else if (document.webkitExitFullscreen) {
                    document.webkitExitFullscreen();
                } else if (document.msExitFullscreen) {
                    document.msExitFullscreen();
                }
            }
        }

        resolutionSelector.addEventListener('change', (event) => {
            setResolution(event.target.value);
        });

        videoPlayer.addEventListener('touchend', (event) => {
            const currentTime = new Date().getTime();
            const tapLength = currentTime - lastTapTime;
            if (tapLength < 300 && tapLength > 0) {
                toggleFullscreen();
            }
            lastTapTime = currentTime;
        });

        document.addEventListener('keydown', (event) => {
            if (event.key === 'ArrowLeft') {
                currentChannelIndex = (currentChannelIndex - 1 + channels.length) % channels.length;
                loadChannel(currentChannelIndex);
            } else if (event.key === 'ArrowRight') {
                currentChannelIndex = (currentChannelIndex + 1) % channels.length;
                loadChannel(currentChannelIndex);
            }
        });

        categoryList.addEventListener('click', (event) => {
            if (event.target.classList.contains('category-button')) {
                const category = event.target.dataset.category;
                document.querySelectorAll('.category-button').forEach(button => {
                    button.classList.remove('active');
                });
                event.target.classList.add('active');
                createChannelButtons(category);
            }
        });

        window.addEventListener('load', () => {
            const title = document.getElementById('mainTitle');
            const letters = title.textContent.split('');
            title.textContent = '';
            letters.forEach((letter, i) => {
                const span = document.createElement('span');
                span.textContent = letter;
                span.style.animationDelay = `${i * 0.1}s`;
                title.appendChild(span);
            });

            setTimeout(() => {
                title.querySelectorAll('span').forEach(span => {
                    span.style.opacity = '1';
                    span.style.transform = 'translateY(0)';
                });
            }, 100);
        });

        loadChannelsFromLocalStorage();
        createChannelButtons();
        document.querySelector('.category-button[data-category="all"]').classList.add('active');
    </script>
</body>
</html>
