Crossorigin errors when loading VTT file

前端 未结 7 1252
我寻月下人不归
我寻月下人不归 2021-02-20 05:48

I\'m new to using the audio tag in HTML 5 and wanted to build a player. I wanted to test using a VTT file in a track tag to see how closed captioning could work.

Here is

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-20 06:19

    https://github.com/videogular/videogular/issues/123

    Add crossorigin="anonymous" to the video tag to allow load VTT files from different domains.

    It is a strange issue, even if your CORS is set correctly on the server, you may need to have you HTML tag label itself as anonymous for the CORS policy to work.

提交回复
热议问题