owncloud-archive / apps

Repo for ownCloud apps. Code here is work in progress and not intended for endusers
374 stars 337 forks source link

[files_videoviewer] subtitle support in videoviewer #2071

Open jzombi opened 9 years ago

jzombi commented 9 years ago

Both html5 and mediaelementjs support subtitles (<track> tag), it would be nice if the videoviewer app could load subtitles for videos. A quick&dirty hack (for version 0.1.3):

$ diff viewer.js_orig viewer.js
4a5
>       '<track kind="subtitles" label="Subtitles" src="%src%.vtt" default></track>' + 

For a video with file name myvideo.mp4 it loads the subtitle myvideo.mp4.vtt.

It's not an ideal solution; even if there is no subtitle with such name, it will still present the radiobutton for selecting it. Also users might want to have more subtitles for a single video (e.g. with different languages). The best solution might be to have file browsing capabilities for selecting the desired subtitle file.

twosky2000 commented 8 years ago

Has there been any changes? i like to add chapters to my video, for easy navigation on a Video Production.