Is there any way to get current caption's text from video tag using Video.js?

前端 未结 5 728
日久生厌
日久生厌 2021-01-06 18:30

I want to get current subtitles\' text during playing a video (and than implement own subtitles block (i.e. to hide original) and also use the information in a few different

5条回答
  •  孤街浪徒
    2021-01-06 19:15

    Yes, you can add a cuechange event listener when your video loads. This can get you the current track's caption text. Here is my working example using videojs.

提交回复
热议问题