textav-event-2017
  • Introduction
  • Intro
    • Introduction
    • TODOS
  • Projects
    • hyperaudio
    • oTranscribe
    • WebAv
    • Opened Captions service
    • Opened Captions annotated articles
      • presentation at SRCCON
    • FrameTrail
    • Captions and TV Archives
    • Extending audiogram with automated transcriptions
    • Palestinian Remix
    • BBC Dialogger
    • autoEdit
  • Remote Presentations
    • Aeneas
    • Mercury
    • Captioning Workflow
      • Needs For Captioning Tool
    • Transcription Service at the FT
    • BBC Video Context
  • Problem Domains
    • Problem domain and component based design
    • Interactive Transcription
    • 🔪✅⬇️ (Annotations models)
    • Object-based Broadcasting
    • Tv Archive AI pipeline
    • The Problem with archives
    • From Spoken Word To Sheet Music
  • Services
    • PopUp Archive & Audiosear.ch
    • YouTube for Publishers (Europe) at the Guardian
    • Microsoft STT & Cognitive Services
  • Unconference Projects
    • TransProvenance
      • Architecture
      • Futures of the project
    • Transcript correction
      • webaligner
    • AI Pipeline
      • I learned what Tesseract can do (and so can you!)
    • Captioning Workflow System
    • removeTextTrack API
Powered by GitBook
On this page
  • Background
  • Updating the Spec
  • Agreement
  • Work at TextAV
  • Next Steps
  1. Unconference Projects

removeTextTrack API

PreviousCaptioning Workflow System

Last updated 6 years ago

Background

Browsers have an API for working with and managing Text Tracks. Text Tracks are the way that browsers expose things like Captions and Subtitles to a developer. There are two ways to add new tracks: add a <track> element as a child of the video element, or use the video.addTextTrack API method.

These two methods are not the same. With the <track> element, you can remove the TextTrack by removing that <track> element. With video.addTextTrack, you cannot remove the created TextTrack.

Originally, the HTML spec had a video.removeTextTrack method but it was removed shortly after because it was unnecessary and it could potentially cause issues if a developer tried to remove a TextTrack that a browser was writing cues into.

Updating the Spec

Last year, shortly after the conference, Evol created an issue on the to ask whether it's time to add this method back in.

The landscape as changed quite a bit since the removeTextTrack was removed. has become prevalent for playing back video on the web. Because of MSE usage, developers also need to start managing their own TextTracks so having removeTextTrack for programmatic removal of text tracks is important.

Agreement

In the issue, there was consensus that it was time to add it back. However, due to low interest from browser vendors, the agreed upon course of action was to add tests to the .

Work at TextAV

At TextAV, we wrote some failing tests for the HTMLMediaElement component and submitted a for the changes.

Next Steps

The immediate next step would be to update the actual spec and iron out the small details.

Demuxed
HTML spec
Media Source Extensions (MSE)
web platform tests
PR