1

I'm using JW Player for playing video files and it's working great.

Is it possible to play video streams with this player?

I already have a rights to stream and link for a TV station. It's in this format: http://XX.XXX.XXX.XXX:9090/stream.flv

How can I set this link for stream?

If you know some alternative player with possibility of live streaming, please let me know.

1 Answer 1

1

JWPlayer does streaming.

http://www.longtailvideo.com/jw-player/hls-rtmp-live-streaming

I wasn't able to find a module that did this, but you can add this to your page, using the Full HTML text input:

<script type="text/javascript" src="/path/to/jwplayer/jwplayer.js" ></script>
<div id="home-video">Loading the player</div>
<script type="text/javascript">
    jwplayer("home-video").setup(
        {
            file: "http://XX.XXX.XXX.XXX:9090/stream.flv",
            height: 320,
            width: 640,
        }
    );
</script>
11
  • I've tried your code. I've changed the path src="mywebsite.com/sites/all/libraries/jwplayer/jwplayer.js" changed into HTML, but it's not appearing the player. When I've copied your code and changed the format into Full HTML and revert back into plain text, automatically deletes the code and only <div id="home-video">Loading the player</div> stayed there. Commented Sep 17, 2013 at 7:30
  • I t has to be FUll HTML. I tried this on my site and it works exactly right. Commented Sep 17, 2013 at 12:15
  • Scott, so you have Installed JW Player 7.x-1.0-alpha1 on your website and then you're adding your code, and after saving everything is working, right? Please add some details, 'cos I've tried with your code in FULL HTML and nothing appeared. Commented Sep 17, 2013 at 12:52
  • I have not installed any modules, I just added the player to my theme folder and went from there. If you try the module it wont let you use stream URL's. Commented Sep 17, 2013 at 12:54
  • Usually every code when I add into my wysiwyg editor first I enable plain text and then I switch into FULL HTML, but in this case when I'm switching your code into full html automatically deletes the code and only left this text "Loading the player". The editor does this when the script code is not right. Commented Sep 17, 2013 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.