无法在JWPlayer中播放视频 [英] Video not playing IN JWPlayer
本文介绍了无法在JWPlayer中播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在JWPlayer中使用自己的皮肤并播放youtube视频.但是视频没有显示.我能够弄清楚播放器的皮肤.这是代码
I am using my own skin in JWPlayer and playing a youtube video. But the video doesnt show up.I am able to get the skin on the player.Here is the code
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key=mykey";</script>
</head>
<body>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "fwplayer.swf",
file: "https://www.youtube.com/watch?v=1gniYetOxCo",
skin: "myskin.xml",
height: 270,
width: 480
});
</script>
</body>
</html>
推荐答案
我从本地主机执行了此代码,并且有效
I executed this code from my localhost and it worked
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>
</head>
<body>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "fwplayer.swf",
file: "https://www.youtube.com/watch?v=yourVideo",
skin: "mySkin.xml",
height: 270,
width: 480
});
</script>
</body>
</html>
这篇关于无法在JWPlayer中播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文