Subtitles not showing using WebVTT

后端 未结 4 2139
野趣味
野趣味 2021-02-19 23:23

So I\'m trying to add subtitles to a html5 video and found WebVTT. I\'ve done some research on it and have even copied some example code to see if that\'ll work and yet I have n

相关标签:
4条回答
  • 2021-02-19 23:47

    It doesn't work locally, you need to run it on a server.

    0 讨论(0)
  • 2021-02-19 23:51

    Browsers do not support that feature locally

    Except Mozilla Firefox 66.0.2

    0 讨论(0)
  • 2021-02-19 23:53

    You use the incorrect time-stamp format. There should a . (dot), after the second value.

    It should be like this: 00:00:00.000 --> 00:00:10.000

    0 讨论(0)
  • 2021-02-19 23:54

    I had the same problem you were having.

    The problem is that Chrome has a security feature that does not allow files to run local files in Chrome.

    The solution is to run Chrome with the allow local access flag. The link gives instructions for each OS.

    0 讨论(0)
提交回复
热议问题