JW播放器加载高清插件本地

JW Player load HD plugin locally

本文关键字:插件 高清 播放器 加载 JW      更新时间:2023-09-26

我一直在尝试使用jw嵌入器代码在本地加载高清插件。我知道你需要使用完整的URL为本地插件,但我不能得到的参数工作。还需要加载hd.js文件吗?有谁能举个例子来分享一下吗?

plugins: {hd:"http://www.mysite.com/swf/files/hd.swf" { file:"http://www.mysites.com/vid/file.mp4", fullscreen: false,state: true },                            
        },

你的做法是错误的,以下是如何做的
如果你想在本地提供文件,你不需要指定"hd: <the url>",只要url就足够了。

plugins: {
    "http://www.example.com/swf/files/hd.swf": {
        file: "http://www.example.com/vid/file.mp4", 
        fullscreen: false,
        state: true 
    }                            
}