data.slice(offset, offset + 188);
                        const header = 4;
                        const adaptation_field_length = packet[header];
                        const pes = packet.slice(header + 1 + adaptation_field_length);
                        const pes_header = 6;
                        const pes_offset = pes_header + 3 + pes[pes_header + 2];
                        const data = pes.slice(pes_offset);
                        captionRenderer.pushData(data.pid, data, pts / 1000);
           