我正在尝试以下工作
convert(String,ex)
我尝试了以下代码,从我那里收集来的是什么呢?
https://developer.jwplayer.com/jw-player/demos/basic/custom-error/
由于showerror.mp3不存在并且应该自动跳转到错误视频并播放
,所以应该会射击错误 <script src="//content.jwplatform.com/libraries/wr6i4gal.js"></script>
<script src="//s3.amazonaws.com/support-static.jwplayer.com/staging/modernizr.js"></script>
<script type="text/javascript">
// jwplayer.key="sXW0XA1MksiJ6hYVNHKJFCtOB4qTihu2B0xyTyZoMiA=";
jwplayer.key = 'sXW0XA1MksiJ6hYVNHKJFCtOB4qTihu2B0xyTyZoMiA=';</script><div id="video">
</div>
<script type="text/javascript">
jwplayer('video').setup({
'skin': 'bekle',
logo: {
file: '',
position: 'top-right',
hide: false
},
'file': "http://blahblah.com/showerror.mp4",
'title': '',
'aspectratio': '16:9',
stretching: 'exactfit',
'bufferlength': '5',
'height': '400px',
'width': '620px',
'primary': 'html5',
'autostart': 'true',
'sharing':'false',
'wmode': 'opaque',
'image': '',
'abouttext': '',
'aboutlink': ''
});
player.on('error', function() {
player.load({
file:"//content.jwplatform.com/videos/7RtXk3vl-52qL9xLP.mp4",
image:"//content.jwplatform.com/thumbs/7RtXk3vl-480.jpg"
});
player.play();
});
</script>
但不是播放视频,它只是显示错误消息,如往常一样,我如何解决此问题?我遵循了指南