Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JW Player Not Connect To RTMP Stream From Wowza


Hi,

Would anyone please be able to help me to resolve a problem I have getting JW Player to connect to a live RTMP stream coming from Wowza? I keep getting the message that JW Player is not supported in offline mode.

I have setup a local web server using XAMMP on my windows PC and placed the JW Player folder with files in the root directory of the local web server (C:\xampp\htdocsjw player\) and I have placed my web page with the JW Player code in the root directory of the local web server.

The Wowza stream is running OK as I can view it using the test players in Wowza but the JW Player will not connect to it. Is JW Player not capable of running on a local web server in the root folder? Or is there an error with my JW Player code? I have pasted the JW Player code below:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script src="/jwplayer/jwplayer.js" ></script>
<script>jwplayer.key="XXXXXXXXXXXXXXXXXXXXXXXXXXXX==";</script>
</head>
<body>
<div id='playerkCCsQilMzLeN'></div>
<script type='text/javascript'>
jwplayer('playerkCCsQilMzLeN').setup({
file: 'rtmp://192.168.1.84:1935/live/feedstream',
image: '/images/logo.jpg',
title: 'Test Stream',
height: 360,
rtmp: {
bufferlength: 0.1
},
width: 640
});
</script>
</body>
</html>


Any help most appreciated as I have spend hours trying to get this to work.

Rgds

1 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

Thank you for contacting the support team. From what I can gather, it seems that your setup should work from a general stand point.

Give this a try and see if this works for you:

<html> <head>

<script src="http://p.jwpcdn.com/6/7/jwplayer.js"></script>

</head> <body> <center> <div id="myVideo">Loading Your Player…</div>

<script> jwplayer.key="KEYXXXXXXXXXXXXXXX"; jwplayer("myVideo").setup({ file:'rtmp://192.168.1.84:1935/live/feedstream', androidhls: "true", height: '281', width: '500', image: 'http://qa.jwplayer.com/~randy/cust/bunny.jpg', }); </script>

</center> </body> </html>

Also, ensure your network traffic in the console is passing through your network as intended and you are not receiving any crossdomain/CORS errors.

Kindly,
Randy

This question has received the maximum number of answers.