• Web APIs
  • endTime
  • track
  • Events
    1. TextTrack
    2. VTTCue
    3. VTTCue; you will work with these derived types rather than the base class.

      These cues represent strings of text presented for some duration of time during the performance of a TextTrack. The cue includes the start time (the time at which the text will be displayed) and the end time (the time at which it will be removed from the display), as well as other information.

      EventTarget TextTrackCue
  • Instance properties

    This interface also inherits properties from EventTarget.

    TextTrackCue.track Read only

    The TextTrack that this cue belongs to, or null if it doesn't belong to any.

    TextTrackCue.id

    A string that identifies the cue.

    TextTrackCue.startTime

    A double that represents the video time that the cue will start being displayed, in seconds.

    TextTrackCue.endTime

    A double that represents the video time that the cue will stop being displayed, in seconds.

    TextTrackCue.pauseOnExit

    A boolean for whether the video will pause when this cue stops being displayed.

    Events

    enter

    Fired when a cue becomes active.

    exit

    Fired when the cue has stopped being active.

    Specifications

    Specification
    Product help
  • Instance properties
    1. startTime
    2. EventTarget
  • Related pages for WebVTT
    1. TrackEvent
    2. VTTRegion
  • ","source":{"folder":"en-us/web/api/texttrackcue","github_url":"https://github.com/mdn/content/blob/main/files/en-us/web/api/texttrackcue/index.md","last_commit_url":"https://github.com/mdn/content/commit/3975bcf6caa09c9c5f7fddf2eef2be6c021d00f6","filename":"index.md"},"summary":"The TextTrackCue interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.","title":"TextTrackCue","toc":[{"text":"Instance properties","id":"instance_properties"},{"text":"Events","id":"events"},{"text":"Specifications","id":"specifications"},{"text":"Browser compatibility","id":"browser_compatibility"}],"baseline":{"baseline":"high","baseline_low_date":"2015-07-29","baseline_high_date":"2018-01-29","support":{"chrome":"23","chrome_android":"25","edge":"12","firefox":"31","firefox_android":"31","safari":"6","safari_ios":"6"}},"browserCompat":["api.TextTrackCue"],"pageType":"web-api-interface"}}

    Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

    Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant