最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to embed RTMP video stream player on webpage? - Stack Overflow

programmeradmin1浏览0评论

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
Add a ment  | 

1 Answer 1

Reset to default 1

You 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>
发布评论

评论列表(0)

  1. 暂无评论