Change segment text before processing #5063
-
What do you want to do with Hls.js?
the idea was to convert arraybuffer to string remove that text then convert it back to arraybuffer |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
If you know how much text you added, you could simply slice the front of the buffer. However, hls.js actually allows for some extra text at the beginning of your MPEG-TS segments, so if you are within this allowable length, you shouldn't need to do anything. Packet length is 188 as MPEG-TS packets are 188 bytes each.
Unless it's a huge amount of text, you should be covered with the above. |
Beta Was this translation helpful? Give feedback.
-
I'm moving this to Discussions as it isn't an issue with the hls.js library at first glance. |
Beta Was this translation helpful? Give feedback.
-
yeah thanks a lot both not doing anything and also converting to uint then slice worked |
Beta Was this translation helpful? Give feedback.
yeah thanks a lot both not doing anything and also converting to uint then slice worked