最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin7PV0评论

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>
Post a comment

comment list (0)

  1. No comments so far