Using JW Player 5.x with Wowza Server

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.

From the code that you sent me you did not have the full path to your player. Are you seeing a black screen or a white screen. I think white means that the player is not found.

Richard,

We have solved the problem here by setting bufferlength=1, adding duration=0 and the provider=rtmp flashvar values. Code snippet shown below:

<param name="flashvars" value="provider=rtmp&bufferlength=1&duration=0&streamer=rtmp://{stream-ip}/live&file=remotestream" />

Bill

Hi Richard

I am trying to get it to work on a Live stream and it doesn’t work. Just keeps Spinning. Stream plays fine in Wowza player.

Please ignore the :smiley: it is actually : D

<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&bufferlength=2&streamer=rtmp://192.168.1.99/live&file=livestream.flv" />
<embed
type="application/x-shockwave-flash"
id="player2"
name="player2"
src="player.swf" 
width="400" 
height="315"
allowscriptaccess="always" 
allowfullscreen="true"
flashvars="provider=rtmp&bufferlength=2&streamer=rtmp://192.168.1.99/live&file=livestream.flv" 
/>
</object>

There is no space in the rtmp. I don’t know why it posted like that

hi Richard,

I tried that before and it didn’t work.

Adrian

Hi Richard

Anything else I can try, I used different machines and different servers.

Do you have a live stream online that I can connect the client to?

Thanks

Wowza Media Server 2 Perpetual 2.0.0 build22912

Wowza isn’t even showing a client trying to connect.

<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player.swf”

width=“400”

height=“315”

allowscriptaccess=“always”

allowfullscreen=“true”

flashvars=“provider=rtmp&bufferlength=2&streamer=rtmp://192.168.1.99/test&file=test2”

/>

Still No luck.

The wowza screen says it is playing, but I get nothing.

Can you suggest any simpler player that I can use. All i need is Autostart and I don’t want the viewer to have to put in the website link or file name.

Adrian

Do you have any sample code for using your player.

I found the code.

How do i get it to AutoStart?

Thanks

Got it to work.

Hi Charlie

I got the Wowza Player to work with my live stream and auto load.

How can I get audio and a volume control?

Thanks

Adrian