我有一个JW Player(7.x)用于显示JSON json feed(link),但我无法弄清楚如何设置格式以便引用的.vtt文件正确处理章节。
JSON Feed不支持章节吗?文档表明他们这样做,所以我怀疑我没有正确格式化。救命啊!
JSON Feed(不起作用):
playerInstance.setup({
skin: { name: "seven" },
playlist: "https://www.scottgoodrow.com/files/podcasts/srvusd/playlist.json",
width: "100%",
aspectratio: "16:9"
});
直接播放列表(有效):
playerInstance.setup({
skin: { name: "seven" },
playlist: [{
file: "https://archive.org/download/SRVUSD/170502_srvusd_boe_cropped.mp3",
image: "https://archive.org/download/SRVUSD/170502_srvusd_boe_cropped.jpeg",
title: "170502 SRVUSD BOE Cropped",
mediaid: "170502_srvusd_boe_cropped",
tracks: [{
file: "https://www.scottgoodrow.com/files/podcasts/srvusd/170502_srvusd_boe_cropped.vtt",
kind: "chapters"
}]
}],
width: "100%",
aspectratio: "16:9"
});