jronallo / abrizer

Creates MPEG-DASH and HLS streams from a video file.
MIT License
19 stars 2 forks source link

canvas: WebVTT captions, subtitles, and chapters #5

Open jronallo opened 7 years ago

jronallo commented 7 years ago

I'm uncertain how with the seeAlso WebVTT captions I could say that they are captions rather than subtitles, descriptions, or chapters. Would it be possible to add a "kind" field that maps directly to an HTML5 track element attribute? Otherwise it could be ambiguous what the proper use for a WebVTT (or other captions format) file is. Players will sometimes have different controls for closed captions and subtitles.

See an example canvas here: https://gist.github.com/jronallo/b455a5ddab2ce4b28d55c7708603f85a

jronallo commented 7 years ago

Adding a "kind" field for now.