JWPlayer 6标题MVC5

时间:2014-07-31 03:38:02

标签: asp.net-mvc jwplayer closed-captions

我的应用程序是MVC5,我已将JWPlayer从5.10升级到6.9。标题不起作用,这是我的脚本:

  jwplayer("mediaplayer").setup({
        playlist: [{
            file: "../Video/when.mp4",
            image: "../Content/images/when.png",
            tracks: [{
                file: '../Video/when.dfxp',
                label: "English",
                kind: "captions",
                "default": true
            },{
                file: '../Video/when.srt',
                kind: "captions",
                label: "French"
            }]
        }]
    });

同样的srt正在使用版本5.10。将srt文件转换为vtt和dfxp,在IE,Chrome和FireFox上进行测试;没人工作。

1 个答案:

答案 0 :(得分:1)

您的代码没问题。

在您的网站www.scanitfirst.com中,标题文件的链接已损坏(未找到404)

http://www.scanitfirst.com/Video/when.dfxp //404
http://www.scanitfirst.com/Video/when.srt  //404

如果您要解决此问题,您的标题应该按预期工作