Page MenuHomePhabricator

Create an API to serve subtitles
Closed, ResolvedPublic

Description

Our current method of serving subtitles to TMH is rather poor.

We need a new endpoint to serve them.
dynamic, cacheable, allow multiple content types etc.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
DeclinedNone
OpenNone
DuplicateNone
ResolvedTheDJ
OpenNone
Resolvedbrion
ResolvedTheDJ
ResolvedTheDJ
ResolvedTheDJ
ResolvedTheDJ
DeclinedNone
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
Resolvedbrion
ResolvedJdforrester-WMF
Resolvedbrion
Resolvedbrion

Event Timeline

TheDJ raised the priority of this task from to Medium.
TheDJ updated the task description. (Show Details)
TheDJ added a project: TimedMediaHandler.
TheDJ added a subscriber: TheDJ.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 232214 had a related patch set uploaded (by TheDJ):
[WIP] First go at a subtitle serving api

https://gerrit.wikimedia.org/r/232214

Added option to core to output http error codes for this with: https://gerrit.wikimedia.org/r/236076

Now added an option to convert subtitles in this patch

I noticed that the SRT for Folgers clip is rather esoteric and failing in conversion. Also already found two bugs in the VTT conversion of captioning/captioning, but when it works. it's easy peasy.

Change 232214 abandoned by TheDJ:
[WIP] First go at a subtitle serving api

https://gerrit.wikimedia.org/r/232214

TheDJ removed TheDJ as the assignee of this task.Sep 18 2017, 1:39 PM

Change 232214 restored by Brion VIBBER:
[WIP] First go at a subtitle serving api

Reason:
Recovering this and taking over

https://gerrit.wikimedia.org/r/232214

I'm cleaning this one up, since videojs really wants webvtt it's a requirement for switching to get things set up cleaner. Also needed for cross-site InstantCommons usage.

Change 232214 had a related patch set uploaded (by Brion VIBBER; owner: Brion VIBBER):
[mediawiki/extensions/TimedMediaHandler@master] Subtitles served through API, with WebVTT conversion

https://gerrit.wikimedia.org/r/232214

Change 232214 merged by jenkins-bot:
[mediawiki/extensions/TimedMediaHandler@master] Subtitles served through API, with WebVTT conversion

https://gerrit.wikimedia.org/r/232214