Disposing Video Player

Initiated players are stored in window.qencodePlayers array. You can access the player by id and call dispose() function. And you should also remove id of the player from the list.

<html>
<head>
  <meta charset='utf-8'>
</head>
<body>
    <script src='https://player-static.qencode.com/release/qencode-bootstrapper.min.js'></script>
    <button id="delete_player_btn">Delete Player</button>
    <div id='player'></div>
    <script>
        qPlayer('player', {
            licenseKey: 'f2234b90-8d26-6b9e-637c-eb62a5e79edb',
            videoSources: { src: "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" },
        }, function (){
            var playerId = this._instanceId;
            document.getElementById("delete_player_btn").onclick = function () {
                if(window.qencodePlayers[playerId]){
                    window.qencodePlayers[playerId].dispose();
                    delete window.qencodePlayers[playerId];   
                }
            };
        });  
    </script> 
</body>
</html>