Wowza Community

Using JW Player 5.x with Wowza Server

Check the Wowza access and error log for a clue.

Try using the SimpleVideoStreaming example player [wowza-install-dir]/examples/SimpleVideoStreaming/client/simplevideostreaming.html

Server: rtmp://[wowza-address]:1935/

Stream: mp4:Extremists.m4v

If that doesn’t work, check the Wowza access and error log again. Is the Extremists.m4v in the content folder?

Richard

Make sure that the player.swf is alongside the html page or that you have correct path to its location.

Richard

Try putting an absolute url to player.swf. Using http://[webserver-address]/…/player.swf, to the exact location.

You can also ask for help on JW Forum.

Richard

The Wowza example players can be run from the file explorer. Not sure about JW player, some Flash apps do not have the security setting that allows them to run from file system and have to be run from a web server.

Richard

JW Player 5.2 will run from file location, I tried it. I open this in browser:

file:///C:/inetpub/wwwroot/JW52/bin-debug/player.html

The player.swf is in the same location and is reference relative, not with absolute url. I am using swfobject. My html looks like this:

<html lang="en"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>player</title> 
 
<script type="text/javascript" src="swfobject.js"></script> 
 </head> 
<body> 
 
<div id="player"> 
 <a href="http://get.adobe.com/flashplayer/">Get the Flash Player</a> 
    to see this video.
</div> 
<script type="text/javascript"> 
var so = new SWFObject('player.swf','mpl','480px','290px','9');
so.addParam('allownetworking','all');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('Flashvars','streamer=rtmp://localhost:1935/vod&file=mp4:sample.mp4&provider=rtmp');
so.write('player');
</script> 
</body> 
</html>

Richard

The .avi file is not supported. To test, try it with the Wowza sample.mp4 file.

Take a look at these encoding suggestions for creating mp4 files:

https://www.wowza.com/docs/how-to-encode-video-on-demand-content

Richard

Charlie, FYI, the RC for JW 5.1 does indeed work now. I’ve just compiled a secure token version of the player from source downloaded last night and it’ll play livestreams fine now.

The current 5.0 player source however will run about 1 frame or so and stop on live streams.

–Chris

FYI, 5.1 of JW is out now.

–Chris

Hi richard,

that looks good. I’ve gotta take a closer look at the MPEG-TS bit tho… I don’t recall having that issue with 5.1. Is that example when you serve from Wowza in MPEG-TS or publishing TO? I havn’t had any issues with 5.1 when I publish to the Wowza server with an MPEG-TS stream sent via UDP and JW picking up as RTMP.

I’m headed to lunch but when I get back I can fiddle with it.

My 5.1 test using my build of JW is here: http://cbtvhd.zcastlive.com/test/index51.html

I’ll send up some MPEGTS in an hour or so.

–chris

I am trying to get a playlist to work with MWS and JW, when I click on play, the player does not play. The xml is like this:

<?xml version="1.0" encoding="utf-8"?> STREAM1

STREAM SOLUTIONS

pastors_1.flv

Pastor 1

rtmp STREAM2

STREAM SOLUTIONS

pastors_1b.flv

Pastor 2

rtmp STREAM3

STREAM SOLUTIONS

pastors_1c.flv

Pastor 3

rtmp

Hi Richard,

Is there a way making a playlist to play live feeds. I have this playlist.xml and its saying the stream is not found.

<?xml version="1.0" encoding="utf-8"?> Worship 1 Plus Faith Clinic Plus Dance

SOLUTIONS

gateway(Sreamname)

Message 1

rmtp://mydomain.com/live rtmp

The embed part of the html is like this:

flashvars="bufferlength=2&streamer=rtmpe://mydomain.com/live&file=playlist.xml&playlist=bottom&provider=rtmp"

Thanks.

Thanks Richard. I managed to get it working (with help from Ethan @ JW who pointed me to this link - http://developer.longtailvideo.com/trac/testing/?player=v5&file=http%3A%2F%2Fwww.longtailvideo.com%2Fjw%2Fupload%2Fstreamers.xml&height=240&playlist=right&playlistsize=400&width=800) . At the moment its only working with IE still can not figure out how to get it working with Firefox or Chrome.

Just in case it will be useful to anyone below is the playlist.xml and .html

playlist.xml

Example XSPF playlist for the JW Player

http://www.domain.com

Streaming Giants - Live RTMP stream

Live TV Streaming Project

http://www.mydomain.com/

This is a Live TV Streaming Project. We offer Live Streaming broadcast and on Demand Video Streaming.

streamfile.flv

rtmp://mydomain.com/live

.html

<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player-licensed.swf”

width=“470”

height=“470”

allowscriptaccess=“always”

allowfullscreen=“true”

file=“playlist.xml&playlist=bottom”

/>

Thanks.

I have tried to get this to work also and have read the whole thread. This is the code I am using for the html.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>JW Player for Flash</title>
	<style type="text/css">
		body { background-color: #fff; padding: 0 20px; color:#000; font: 13px/18px Arial, sans-serif; }
		a { color: #360; }
		h3 { padding-top: 20px; }
		ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }
	</style>
</head>
<body>
	<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="400" height="315">
		<param name="movie" value="player.swf" />
		<param name="allowfullscreen" value="true" />
		<param name="allowscriptaccess" value="always" />
		<param name="flashvars" value="provider=rtmp://xxx.xxx.xxx.xxx:1935/live&file=myStream.sdp" />
		<embed
			type="application/x-shockwave-flash"
			id="player2"
			name="player2"
			src="player.swf" 
			width="400" 
			height="315"
			allowscriptaccess="always" 
			allowfullscreen="true"
			flashvars="provider=rtmp://xxx.xxx.xxx.xxx:1935/live&file=myStream.sdp" 
		/>
	</object>
</body>
</html>

I get the player on the page. If I use the original code with “provider” at the end of “pram name” I get at least the spinning icon on the video. If I use the code that I have posted I still get the player but nothing happens when I click the arrow icon.

Once again thank you very much.

I am trying to use this code for an embedded version of the video that I streamed the other day:

<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player.swf”

width=“577”

height=“448”

allowscriptaccess=“always”

allowfullscreen=“true”

flashvars=“streamer=rtmp://xxx.xxx.xxx.xxx:1935/vod&file=mp4:wl/plewa_H264.mov&provider=rtmp”

/>

all I get is a white box. I do have the player installed in the same folder with the index.html file. This code is almost like the code used for the live streaming page but with a few parameters changed. Shouldn’t this work?

I get these errors on the webserver, which right now is only running on my laptop:

9/2/10 11:07:05 AM Safari[815] unknown error code: invalid drawable

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : unknown error code: invalid drawable

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:05 AM Safari[815] kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:05 AM Safari[815] unknown error code: invalid drawable

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : unknown error code: invalid drawable

9/2/10 11:07:05 AM Safari[815] kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:05 AM Safari[815] unknown error code: invalid drawable

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : unknown error code: invalid drawable

9/2/10 11:07:05 AM Safari[815] kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:05 AM Safari[815] unknown error code: invalid drawable

9/2/10 11:07:05 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:05 watercampws15.watercampws.uiuc.edu Safari[815] : unknown error code: invalid drawable

9/2/10 11:07:51 AM Safari[815] kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:51 AM Safari[815] unknown error code: invalid drawable

9/2/10 11:07:51 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:51 watercampws15.watercampws.uiuc.edu Safari[815] : kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:51 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:51 watercampws15.watercampws.uiuc.edu Safari[815] : unknown error code: invalid drawable

9/2/10 11:07:51 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:51 watercampws15.watercampws.uiuc.edu Safari[815] : kCGErrorIllegalArgument: CGSGetSurfaceBounds

9/2/10 11:07:51 AM [0x0-0x34034].com.apple.Safari[815] Thu Sep 2 11:07:51 watercampws15.watercampws.uiuc.edu Safari[815] : unknown error code: invalid drawable

9/2/10 11:07:51 AM Safari[815] kCGErrorIllegalArgument: CGSGetSurfaceBounds

we have the content folder defined in the xml file. Are you saying that we also need to have the wl folder that is in the content folder defined in the Application.xml? I thought that I did not have to define that folder as I am using folders for each college course on another Wowza server and all I have to do is put the folder in as part of the location on the embed code.

Yes there is a video by that name in that folder.

There are no errors dealing with the one page that has a white box. There is nothing to click on the page so I wouldn’t expect there to be any errors. The player is not being drawn. The index.html works fine, I have the player files installed in the same folder as the index file. The next page is in another folder called plewa. This is the page that is not drawing the player. Even if I put a copy of the player files in that folder it still will not draw the player. This is frustrating. Setting up this on a Mac server is trivial for me but doing this on Windows is like pulling teeth.

Yes first player is next to the index.html. I have been reading the Rapidweaver forum, that is what I am using to make the website. The problem is that the additional pages past index.html are not seeing the player. I am going to try a suggestion where I add the player to the assets folder for the page and link from there. This doesn’t sound like a clean solution but if it works I will go with it, I will only have 12 pages of video. The better solution is to make a playlist and then have all of the videos on one page, I might try that also. I will check back when I have found a solution.

The only way I have been able to get the player to work for me is to use the absolute address. This was easier to do then to deal with the system admin to give me a correct path. :confused:

Where do you have the player located? I have mine on a webserver so I can use an http address and not worry about path problems. I also use javascript for the embed code.