Open omerholz opened 4 years ago
@glut23 would love your feedback
Hi @omerholz apologies for replying this late. I am thinking that we could incorporate this parsing functionality as part of the WebVTT class, so the user can parse a vtt file and read the HLS data if present. What do you think? Thanks for your contribution.
I'm game to place it there @glut23 I'll ping you once I get to it
Adding support for parsing HLS WebVTT X-TIMESTAMP-MAP tag. for more details see: https://tools.ietf.org/html/rfc8216#section-3.5
This PR keeps full backward compatibility. It adds a new structure
TimestampMap
to store the timestamp map, a new parserHlsWebVTTParser
to parse webvtt payload that may or may not haveX-TIMESTAMP-MAP
tag and a newHlsWebVTT
class to tie everything together: