我正在使用JWPlayer v6.8.4616..
当我用单个audio/mp3
文件测试它时,使用Caption,它可以工作。例如:
<script type='text/javascript'>
jwplayer("theplayer").setup({
file: "http://www.example.com/audio1.mp3",
tracks: [{
file: "http://www.example.com/audio1.srt"
}]
});
</script>
Audio/mp3
文件正在播放标题。
但是,当我使用Playlist
进行测试时,字幕仅显示在视频轨道上,但不会显示在音频/ mp3轨道上。
像:
<script type='text/javascript'>
jwplayer("theplayer").setup({
playlist: [{
file: "http://www.example.com/video1.mp4",
title: "Video Track (1)",
tracks: [{
file: "http://www.example.com/video1.srt",
label: "English",
kind: "captions",
"default": true
}]
},{
file: "http://www.example.com/video2.mp4",
title: "Video Track (2)",
tracks: [{
file: "http://www.example.com/video2.srt",
label: "English",
kind: "captions",
"default": true
}]
},{
file: "http://www.example.com/audio1.mp3",
title: "Audio Track (1)",
tracks: [{
file: "http://www.example.com/audio1.srt",
label: "English",
kind: "captions",
"default": true
}]
}]
});
</script>
为什么它和如何在播放列表中的音频/ mp3曲目上设置字幕?