javascript JW 播放器:未找到合适的播放器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11775986/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
JW Player: No suitable players found
提问by Curt
I have the following javascript on my web page:
我的网页上有以下 javascript:
jwplayer(elementId).setup({
'modes': [
{ type: 'html5' },
{ type: 'flash', src: '/jwplayer/player.swf' }
],
file: videoUrl,
width: width + "px",
height: height + "px"
});
When running the page in Google Chrome (version 20.0.1132.57 m) I get the error:
在 Google Chrome ( version 20.0.1132.57 m) 中运行页面时,出现错误:
No suitable players found
没有找到合适的玩家
I've debugged my code, and all variables are passing the correct values. Also I've used this same script on other applications, and they are working fine.
我已经调试了我的代码,并且所有变量都传递了正确的值。此外,我在其他应用程序上使用了相同的脚本,它们运行良好。
Why am I receiving this error?
为什么我会收到此错误?
回答by Vijayan
Install the adobe flash player please find the below mentioned link http://get.adobe.com/flashplayer/
安装 adobe flash player 请找到下面提到的链接 http://get.adobe.com/flashplayer/
回答by Rantiev
I think this error can appear when, wrong URL, or wrong setup object proveded.
我认为当证明错误的 URL 或错误的设置对象时,可能会出现此错误。
Try to check your url. Also you should not use PX here "width + "px"," leave it width: 200 for example.
尝试检查您的网址。此外,您不应在此处使用 PX “width + “px”,例如将其保留为 width: 200。