Events jwplayer事件不工作 我在使用jwplayer事件工作时遇到问题。我有jwplayer 5.7.1896(许可版本),我正在尝试使用onReady和onPlay事件向我的应用程序发送ajax回调。 代码如下: 我的访谈链接 jwplayer('mediaspace')。设置({ 自动启动:错误, allowscriptaccess:“始终”, 档案:'http://c200581.r81.cf1.rackcdn.com/5a317e302f993e494ccea617c9796eeb_other_video_2.mp4', flashplayer:'http://staging.myinterviewlink.com/javascripts/jwplayer/player.swf', “logo.file”:”http://staging.myinterviewlink.com/images/mil-bottom-logo-bottomspace.png', 'logo.hide':false,'logo.link':'http://www.myinterviewlink.com/', 图像:'http://c200581.r81.cf1.rackcdn.com/16a944899647b38dc7ab083c0299d601_other_video_2.jpg', 皮肤:'http://staging.myinterviewlink.com/javascripts/jwplayer/skins/glow.zip', frontcolor:'ffffff', lightcolor:'cc9900', 屏幕颜色:“ffffff”, 拉伸:“exactfit”, 控制栏:“结束”, 宽度:“660”, 高度:'380', 活动:{ onReady:function(){alert('im ready')}, onPlay:function(){alert('lets play')} } }); 让我知道我是否遗漏了什么?
是的,我也遇到过这个问题。未授权的玩家可以使用回调,但未授权的玩家不能使用回调。我将尝试联系创建者,看看他们怎么说。我试图在浏览器中以本地html文件的形式从目录中打开该文件,这就是导致事件失败的原因。我将页面上传到我的域中,并对其进行了测试,事件运行良好Events jwplayer事件不工作 我在使用jwplayer事件工作时遇到问题。我有jwplayer 5.7.1896(许可版本),我正在尝试使用onReady和onPlay事件向我的应用程序发送ajax回调。 代码如下: 我的访谈链接 jwplayer('mediaspace')。设置({ 自动启动:错误, allowscriptaccess:“始终”, 档案:'http://c200581.r81.cf1.rackcdn.com/5a317e302f993e494ccea617c9796eeb_other_video_2.mp4', flashplayer:'http://staging.myinterviewlink.com/javascripts/jwplayer/player.swf', “logo.file”:”http://staging.myinterviewlink.com/images/mil-bottom-logo-bottomspace.png', 'logo.hide':false,'logo.link':'http://www.myinterviewlink.com/', 图像:'http://c200581.r81.cf1.rackcdn.com/16a944899647b38dc7ab083c0299d601_other_video_2.jpg', 皮肤:'http://staging.myinterviewlink.com/javascripts/jwplayer/skins/glow.zip', frontcolor:'ffffff', lightcolor:'cc9900', 屏幕颜色:“ffffff”, 拉伸:“exactfit”, 控制栏:“结束”, 宽度:“660”, 高度:'380', 活动:{ onReady:function(){alert('im ready')}, onPlay:function(){alert('lets play')} } }); 让我知道我是否遗漏了什么?,events,callback,jwplayer,Events,Callback,Jwplayer,是的,我也遇到过这个问题。未授权的玩家可以使用回调,但未授权的玩家不能使用回调。我将尝试联系创建者,看看他们怎么说。我试图在浏览器中以本地html文件的形式从目录中打开该文件,这就是导致事件失败的原因。我将页面上传到我的域中,并对其进行了测试,事件运行良好 i'm having trouble using jwplayer events to work. i have jwplayer 5.7.1896 (Licensed version) and i'm trying to use the o
i'm having trouble using jwplayer events to work. i have jwplayer 5.7.1896 (Licensed version) and i'm trying to use the onReady and onPlay events to send an ajax callback to my application.
Following is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>My InterviewLink</title>
<script src='http://staging.myinterviewlink.com/javascripts/jwplayer/jwplayer.js'></script>
</head>
<body>
<div id='mediaspace'></div>
<script type='text/javascript'>
jwplayer('mediaspace').setup({
autostart: false,
allowscriptaccess: "always",
file: 'http://c200581.r81.cf1.rackcdn.com/5a317e302f993e494ccea617c9796eeb_other_video_2.mp4',
flashplayer: 'http://staging.myinterviewlink.com/javascripts/jwplayer/player.swf',
'logo.file': 'http://staging.myinterviewlink.com/images/mil-bottom-logo-bottomspace.png',
'logo.hide': false, 'logo.link': 'http://www.myinterviewlink.com/',
image: 'http://c200581.r81.cf1.rackcdn.com/16a944899647b38dc7ab083c0299d601_other_video_2.jpg',
skin: 'http://staging.myinterviewlink.com/javascripts/jwplayer/skins/glow.zip',
frontcolor: 'ffffff',
lightcolor: 'cc9900',
screencolor: 'ffffff',
stretching: 'exactfit',
controlbar: 'over',
width: '660',
height: '380',
events: {
onReady: function(){alert('im ready')},
onPlay: function(){alert('lets play')}
}
});
</script>
</body>
</html>
let me know if there's something that i'm missing here?