杂技..coursera开启双字幕
作者:互联网
coursera开启双字幕
var myvideo = document.getElementsByTagName('video')[0]; for (var i = 0; i < myvideo.textTracks.length; i++) { ["en", "zh-CN"].indexOf(myvideo.textTracks[i].language) > -1 ? myvideo.textTracks[i].mode = "showing" : myvideo.textTracks[i].mode = "hidden"; }
标签:..,coursera,myvideo,字幕,mode,var,textTracks 来源: https://www.cnblogs.com/liqiujiong/p/15371409.html