Wowza Community

Using JW Player 5.x with Wowza Server

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

Hi Richard,

Thank you posting this tutorial.

Unfortunately, it just doesn’t seem to work for me.

I am repeating your exact steps and the player is appearing but the loading icon just spins indefinitely while no video loads.

i’ll post my code:

	<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="bufferlength=2&streamer=rtmp://{server-ip}/simplevideostreaming&file=mp4:Extremists.m4v" />
			<embed
				type="application/x-shockwave-flash"
				id="player2"
				name="player2"
				src="player.swf" 
				width="400" 
				height="315"
				allowscriptaccess="always" 
				allowfullscreen="true"
				Flashvars="bufferlength=2&streamer=rtmp://{server-ip}/simplevideostreaming&file=mp4:Extremists.m4v" 
			/>
		</object>
		

{server-ip} is the ip of the built-in Apache server on my Mac.

Looks just like yours as far as i can tell.

I imagine then that the problem has to do with the relative location of the JW player files / Wowza Files. Can you tell me how this should be set up or what the problem might be.

Further down the road i’m aiming to stream a playlist from the wowza server to the JW player. Can you recommend a playlist format and give me a clue as to how I should include it and the flahsvars of each track?

Any help is much appreciated.

Thanks

Hey Richard,

thanks for the fast reply!

Alas, neither of your suggestions worked. I still see endless loading.

Any other ideas? I can’t be the only one. Unless it has to do with my Mac server or the way i have placed my files.

I’m sure it’s a glaring error that i’m overlooking in frustration.

Do i need to create an applicaton called simplevideostreaming in the applications folder? because it’s only in examples for me. I thought that would suffice.

Would it work with a fresh differently-named application or is simplevideostreaming pre-configured in some way to work?

thanks again

tried moving SimpleVideoStreaming from examples to applications folder. No go.

This is very frustrating.

What else could be the problem?

I finally got it to work. I just messed with it for a while and it worked. Wish i could say what did it.

Thanks a lot anyway Richard. Best regards.