Youtube Closed Caption for HTML5 Not Working

前端 未结 1 996
南笙
南笙 2021-01-28 15:49

I am having issues displaying closed caption on youtube videos using the iframe player.

Here\'s the code I am using:



          


        
相关标签:
1条回答
  • 2021-01-28 16:19

    I was able to load captions by setting cc_load_policy to 1. I also realized that the sample video on the youtube site defaulting to using <embed> (read: Flash), instead of using the html5 video player.

    I am not certain when the iframe player decides to use over , but I did find a video that does use the html5 video tag. Even so, I had to set cc_load_policy to 1 in order for it to work. Neither loadModule nor unloadModule works anymore.

    I hope this helps anyone else who ran into this issue.

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