htmlvideosubtitlesrtwebvtt

Does HTML5 Video support srt textTrack?


I have tried the html5 video with textTrack, it works properly with .vtt (WebVTT). However, it doesn't work with .srt.

So my question is whether html5 support .srt on the chrome or firefox?

I have looked the information in w3 but there are no information about srt.

http://www.w3.org/TR/html5/embedded-content-0.html#attr-track-kind-subtitles

I have also investigated on some players. Most of them parse the .srt instead of the html5 video textTrack.

So I want to find if any document about .srt subtitle format in the native html5 player.

Thanks


Solution

  • I don't think SRT's are natively supported, but you have two options.

    1) Use a library like videosub which is just one include in your HTML file and the SRT's just work via JavaScript.

    or

    2) Use a service like Caption Converter to convert your SRT files to VTT.