0
我怎麼可以在videojs
添加可切換音軌,我試着這樣做:videojs多音頻語言
<video id="l2e-video" muted class="video-js vjs-default-skin vjs-big-play-centered" controls width="640" height="264" data-setup="" mediagroup="lang_tracks">
<source src="http://localhost/1.mp4" type="video/mp4" >
<track src="http://localhost/1.mp3" kind="descriptions" type="audio/mp3" srclang="en" label="English">
<track src="http://localhost/1.mp3" kind="descriptions" type="audio/mp3" srclang="ar" label="Arabic">
</video>
,但是當我試圖加載它,它的錯誤:
Text Track parsing errors for http://localhost/1.mp3
{name: "ParsingError", code: 0, message: "Malformed WebVTT signature."}
我不知道它是怎麼說Text track
當我明確地設置type
到audio
,我將如何實現擁有多種語言的視頻?!
我想改變音軌而不是它自己的視頻 – Abanoub
@Abanoub您是不是指正在播放的視頻的音軌? – guest271314
是啊我想用戶切換播放音頻 – Abanoub