Coder Social home page Coder Social logo

Comments (4)

slifty avatar slifty commented on July 30, 2024 1

Just as an update: this package will handle X-TIMESTAMP-MAP.

You need to pass { meta: true } in the options:

e.g.

const parsedData = webvtt.parse(data, { meta: true })

from node-webvtt.

osk avatar osk commented on July 30, 2024 1

Yeah it's been some time since I've touched on anything here, happy to fix if the spec has changed.

Also happy to accept PR's that fix stuff :-) I can then release a new version.

from node-webvtt.

slifty avatar slifty commented on July 30, 2024

Just wanted to chime in to note that I'm facing this issue as well; since this issue is pretty old with no response I'm going to likely fork and patch locally (happy to contribute a PR upstream as well)

This discussion may be relevant to the issue: w3c/webvtt#485

Ultimately there is some confusion in the spec, but The Powers That Be have weighed in to suggest that this should be considered valid: https://mailarchive.ietf.org/arch/msg/hls-interest/4vmLpEsV-EnmkEwMQZkzbGQai_4/

Specifically:

To be clear, what HLS expects (and what the VTT spec defined prior to that 2016 change) is for the X-TIMESTAMP-MAP line to be among a set of non-blank lines immediately after the WEBVTT header line, followed by two or more line terminators, followed by the rest of the body.

from node-webvtt.

osk avatar osk commented on July 30, 2024

Think this is covered, otherwise feel free to open and add more info @clipod

from node-webvtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.