</script>

    <script>
        var checkBoxFields = ['isLive', 'withCredentials', 'liveSync'];
        var streamURL, mediaSourceURL;
        var arib_caption_transmit_mode;

        function parseMalformedPES(data) {
            var PES_scrambling_control = (data[0] & 0x30) >>> 4;
            var PTS_DTS_flags = (data[1] & 0xC0) >>> 6;
            var PES_header_data_length = data[2];

            var payload_start_index = 3 + PES_header_data_length;
            var payload_length = data.byteLength - payl