Page MenuHomePhabricator

Add audio/video subtitles to media endpoint response?
Closed, DeclinedPublic

Description

Audio and video elements in Parsoid HTML may have <track> children that expose subtitles. See example HTML at https://www.mediawiki.org/wiki/Specs/HTML/1.6.0#Audio/Video.

<track kind="subtitles"
                    type="text/x-srt"
                    src="https://commons.wikimedia.org/w/index.php?title=TimedText:Folgers.ogv.de.srt&amp;action=raw&amp;ctype=text%2Fx-srt"
                    srclang="de"
                    label="Deutsch (de) subtitles"
                    data-mwtitle="TimedText:Folgers.ogv.de.srt"
                    data-dir="ltr"/>

These should be added to the media endpoint response as structured data. Only the list of subtitle information on <track> tags, with the URLs and other relevant attributes. Not the content of the subtitles themselves.

Event Timeline

Jhernandez triaged this task as Medium priority.EditedMar 6 2019, 4:58 PM
Jhernandez subscribed.

This is about exposing the list of subtitle information on <track> tags, with the URLs. Not the content of the subtitles themselves.

Example:

<track kind="subtitles"
                    type="text/x-srt"
                    src="https://commons.wikimedia.org/w/index.php?title=TimedText:Folgers.ogv.de.srt&amp;action=raw&amp;ctype=text%2Fx-srt"
                    srclang="de"
                    label="Deutsch (de) subtitles"
                    data-mwtitle="TimedText:Folgers.ogv.de.srt"
                    data-dir="ltr"/>
Jhernandez lowered the priority of this task from Medium to Low.Sep 11 2019, 12:24 PM

No use case, and the PCS media endpoint that this refers to is deprecated.