admin管理员组文章数量:1025218
Is there any free/open/customizable solution?
I heard about jwplayer
but i cound't get it to work using their page structions, like the following:
<script src=".js"></script>
<script>
$(document).ready(function() {
jwplayer("cover").setup({
file: "rtmp://199.59.88.39/cam4-cr107/130.flv",
image: "start.png",
height: 360,
width: 640
});
});
</script>
What I'm I doing wrong? Any other better player suggestion?
Is there any free/open/customizable solution?
I heard about jwplayer
but i cound't get it to work using their page structions, like the following:
<script src="http://jwpsrv./library/XXzG4ndHEeS3EA6sC0aurw.js"></script>
<script>
$(document).ready(function() {
jwplayer("cover").setup({
file: "rtmp://199.59.88.39/cam4-cr107/130.flv",
image: "start.png",
height: 360,
width: 640
});
});
</script>
What I'm I doing wrong? Any other better player suggestion?
Share Improve this question edited Dec 2, 2014 at 17:56 Sarchophagi asked Nov 29, 2014 at 4:52 SarchophagiSarchophagi 3862 gold badges6 silver badges21 bronze badges 1- Do you have a link to where you are running this? – emaxsaun Commented Dec 1, 2014 at 3:31
1 Answer
Reset to default 1You have a problem in this line jwplayer("#cover").setup({
Also you forget to add <div id=cover></div>
Try this code:
<script src="http://jwpsrv./library/XXzG4ndHEeS3EA6sC0aurw.js"></script>
<div id=cover></div>
<script>
$(document).ready(function() {
jwplayer("cover").setup({
file: "rtmp://199.59.88.39/cam4-cr107/130.flv",
image: "start.png",
height: 360,
width: 640
});
});
</script>
Is there any free/open/customizable solution?
I heard about jwplayer
but i cound't get it to work using their page structions, like the following:
<script src=".js"></script>
<script>
$(document).ready(function() {
jwplayer("cover").setup({
file: "rtmp://199.59.88.39/cam4-cr107/130.flv",
image: "start.png",
height: 360,
width: 640
});
});
</script>
What I'm I doing wrong? Any other better player suggestion?
Is there any free/open/customizable solution?
I heard about jwplayer
but i cound't get it to work using their page structions, like the following:
<script src="http://jwpsrv./library/XXzG4ndHEeS3EA6sC0aurw.js"></script>
<script>
$(document).ready(function() {
jwplayer("cover").setup({
file: "rtmp://199.59.88.39/cam4-cr107/130.flv",
image: "start.png",
height: 360,
width: 640
});
});
</script>
What I'm I doing wrong? Any other better player suggestion?
Share Improve this question edited Dec 2, 2014 at 17:56 Sarchophagi asked Nov 29, 2014 at 4:52 SarchophagiSarchophagi 3862 gold badges6 silver badges21 bronze badges 1- Do you have a link to where you are running this? – emaxsaun Commented Dec 1, 2014 at 3:31
1 Answer
Reset to default 1You have a problem in this line jwplayer("#cover").setup({
Also you forget to add <div id=cover></div>
Try this code:
<script src="http://jwpsrv./library/XXzG4ndHEeS3EA6sC0aurw.js"></script>
<div id=cover></div>
<script>
$(document).ready(function() {
jwplayer("cover").setup({
file: "rtmp://199.59.88.39/cam4-cr107/130.flv",
image: "start.png",
height: 360,
width: 640
});
});
</script>
本文标签: javascriptHow to embed RTMP video stream player on webpageStack Overflow
版权声明:本文标题:javascript - How to embed RTMP video stream player on webpage? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745618548a2159436.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论