# Using JW Player 5.x with Wowza Server

**URL:** https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246
**Category:** Wowza Streaming Engine
**Created:** [January 25, 2010, 8:09pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246 "2010-01-25T20:09:08Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [January 25, 2010, 8:09pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/1 "2010-01-25T20:09:08Z")

</div>

[https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server](https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server)

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 23, 2010, 9:23am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/2 "2010-02-23T09:23:37Z")

</div>

The code is in the .fla file. You will need Adobe Flash CS3/CS4 to edit it.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 23, 2010, 12:22pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/3 "2010-02-23T12:22:54Z")

</div>

Add the call:

```auto
connectLivePlayer(null);

```

To the bottom of the ActionScript.

Of course you will need to pre-set the RTMP URL and stream name and hide the controls.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 26, 2010, 10:00am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/4 "2010-02-26T10:00:33Z")

</div>

We don’t have a volume control. You will need to add one. We do not have any suggest code for volume controls.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [July 23, 2010, 5:47am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/5 "2010-07-23T05:47:25Z")

</div>

This seems very player specific. I guess I might contact the JW Player team.

Charlie

---

<div class="post-metadata">

### Author: ![Chris\_Floersch](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@Chris\_Floersch](https://community.wowza.com/u/Chris_Floersch)
#### Post date: [January 26, 2010, 12:35pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/6 "2010-01-26T12:35:40Z")

</div>

> Edit the file: com.longtailvideo.jwplayer.media/RTMPMediaProvider.as
> 
> Change the onMetaData handler to the code below, change the 320 and 240 values to the frame size of your video and publish the new player:
> 
> ```auto
> public function onData(dat:Object):void {
> if (dat.width) {
> _video.width = dat.width;
> _video.height = dat.height;
> resize(_width, _height);
> } else {
> _video.width = 320;
> _video.height = 240;
> model.mediaHandler(video);
> }
> if (dat.duration && item.duration < 0) {
> trace("duration " + dat.duration);
> item.duration = dat.duration;
> }
> if (dat.type == 'complete') {
> complete();
> } else if (dat.type == 'close') {
> stop();
> }
> if (config.ignoremeta != true) {
> sendMediaEvent(MediaEvent.JWPLAYER_MEDIA_META, {metadata: dat});
> }
> }
> 
> ```

Have you even tried the above code?

---

<div class="post-metadata">

### Author: ![Bill\_Cairns](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@Bill\_Cairns](https://community.wowza.com/u/Bill_Cairns)
#### Post date: [February 11, 2010, 11:54am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/7 "2010-02-11T11:54:52Z")

</div>

Hi Richard,

I’m having trouble playing a live stream with JWP5. The first few frames of video come up along with a tenth of a second of audio but then it freezes and shows the spinning icon. The Wowza server version is 1.7.2. I tried Wirecast and Adobe FME with the same results. Here’s the code used:

```auto
<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}/live&file=remotestream.flv&provider=rtmp" />
		<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}//live&file=remotestream.flv&provider=rtmp" 
		/>
	</object>

```

Thanks for the tutorial,

Bill

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 22, 2010, 12:06pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/8 "2010-02-22T12:06:51Z")

</div>

Try entering this url into the same browser window. What do you get?

```auto
http://192.168.1.99:1935

```

When you try to play the stream with JW Player, do you see any log messages in the Wowza logs?

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 23, 2010, 7:52am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/9 "2010-02-23T07:52:17Z")

</div>

Then it could be step #5 in the instructions. If the security isn’t setup properly then it will not attempt to connect. Try either following those steps or host the player at a web server and access it using a URL.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 23, 2010, 8:11am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/10 "2010-02-23T08:11:06Z")

</div>

I went back and tried this myself. I could not get JW Player 5 to work either. I finally reverted to JW Player 4.6 from here:

[http://www.longtailvideo.com/players/jw-player-4-for-flash](http://www.longtailvideo.com/players/jw-player-4-for-flash)

My HTML code looks like this:

```auto
	<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200">
		<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://[wowza-ip-address]/live&file=test2.flv" />
		<embed
			type="application/x-shockwave-flash"
			id="player2"
			name="player2"
			src="player.swf"
			width="328"
			height="200"
			allowscriptaccess="always"
			allowfullscreen="true"
			flashvars="provider=rtmp&bufferlength=2&streamer=rtmp://[wowza-ip-address]/live&file=test2.flv"
		/>
	</object>

```

You will need to update the RTMP URLs in two places.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 23, 2010, 9:14am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/11 "2010-02-23T09:14:17Z")

</div>

You can edit our player using Adobe Flash CS3/CS4. You can try FlowPlayer.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 25, 2010, 9:02am UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/12 "2010-02-25T09:02:20Z")

</div>

Right, we are just waiting for JW Player 5.1 to be released.

Charlie

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 26, 2010, 6:23pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/13 "2010-01-26T18:23:43Z")

</div>

Obviously you found an error. Congratulations. I updated the posting.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 11, 2010, 3:06pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/14 "2010-02-11T15:06:50Z")

</div>

Try with “provider” Flashvar:

```auto
Flashvars="bufferlength=2&streamer=rtmp://{server-ip}/simplevideostreaming&file=mp4:Extremists.m4v&provider=rtmp"

```

Also, try without the mp4: prefix. (however you probably do need this with m4v extension, but try without)

```auto
Flashvars="bufferlength=2&streamer=rtmp://{server-ip}/simplevideostreaming&file=Extremists.m4v&provider=rtmp"

```

Client-side playlist in JW Player are done with xml. See the JW tutorials, there are a lot of options, but the main thing you do is change the “file” flashvar to point to an xml playlist.

&file=playlist.xml

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 11, 2010, 5:33pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/15 "2010-02-11T17:33:23Z")

</div>

I’m glad it’s working. I am pretty sure that the only one that made a difference is “provider=rtmp”

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 11, 2010, 6:56pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/16 "2010-02-11T18:56:47Z")

</div>

The player should be on a web server. Or you can run it from file explorer on your computer.

I suggest to put JW player aside for a minute, and get this working using the SimpleVideoStreaming example player, which is located here:

[wowza-install-dir]/examples/SimpleVideoStreaming/client/

All the files in this folder should be run from a web server, or just directly from file explorer on your computer.

In Wowza, for this example, all you need is an empty folder here:

[wowza-install-dir]/applications/SimpleVideoStreaming

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 11, 2010, 8:38pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/17 "2010-02-11T20:38:53Z")

</div>

Glad it’s working!, anyway.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 12, 2010, 12:51pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/18 "2010-02-12T12:51:15Z")

</div>

It’s not going to be a relative link or http url (unless you are doing progressive download) even if on the same machine.

I’m not that familiar with xspf format, but here is an RSS playlist:

```auto
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
<channel>
	<item>
		<jwplayer:streamer>rtmp://localhost/vod</jwplayer:streamer>
		<media:content url="somevideo.mp4"/>
	</item>
</channel>
</rss>

```

“somevideo.mp4” has to be located where /conf/vod/Application.xml /StorageDir points to

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 12, 2010, 2:36pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/19 "2010-02-12T14:36:53Z")

</div>

To use the jwplayer:streamer you have to include the namespace in the header:

> xmlns:jwplayer="[http://developer.longtailvideo.com/trac/wiki/FlashFormats](http://developer.longtailvideo.com/trac/wiki/FlashFormats)

To display the playlist, you have to include “playlist” flashvar “&playlist=right” (or bottom or over), and “playlistsize” “&playlistsize=200”, and you have to make the player big enough by increasing the width (or height if playlist=bottom).

So to display a playlist that is 200 wide, increase the width of the player by 200:

> \<object id=“player” name=“player” **width=“600”** height=“315”\>

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [February 12, 2010, 4:06pm UTC](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246/20 "2010-02-12T16:06:37Z")

</div>

Martin,

It can be difficult. Can you post this on JW forum also? I’ve got stuck on playlists before myself and got help there. That’s where I found out about jw namespace in playlist.

If you do get an answer there, and post back here, it would be appreciated.

Richard

[Next page](https://community.wowza.com/t/using-jw-player-5-x-with-wowza-server/246.md?page=2)
