我试图在jwplayer脚本上显示字幕,但我不知道google drive video上字幕的路径
tracks: [{
file: "/assets/captions-en.vtt",
label: "Latino",
kind: "captions",
"default": true
},{
file: "/assets/captions-fr.vtt",
kind: "captions",
label: "Subtitulado"
}],
primary: 'html5',
这是我的代码,但字幕不会出现,我知道在文件中我必须放下字幕路径,所以问题是如果有人知道路径是什么?
答案 0 :(得分:0)
只需像这样添加../ assets / captions-en.vtt
tracks: [{
file: "../assets/captions-en.vtt",
label: "Latino",
kind: "captions",
"default": true
},{
file: "../assets/captions-fr.vtt",
kind: "captions",
label: "Subtitulado"
}],
primary: 'html5',
就像这样与我合作。