# Using JW Player 4 with Wowza Server

**URL:** <https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33>\
**Category:** Wowza Streaming Engine\
**Created:** [March 26, 2007, 4:45am UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33 "2007-03-26T04:45:05Z")\
**Posts on this page:** 10\
**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:** [March 26, 2007, 4:45am UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/1 "2007-03-26T04:45:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mmm\_mmm](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mmm\_mmm](https://community.wowza.com/u/mmm_mmm)\
**Post date:** [February 14, 2010, 3:29am UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/2 "2010-02-14T03:29:34Z")

</div>

hi,

in my case, Extremists.m4v file does not stream with mp4: prefix, but it’s working without the prefix. Is something wrong with my installation?

the exact code I use is:

```auto
<embed type="application/x-shockwave-flash" id="player4" name="player4" src="player_4.6.swf" width="320" height="240" allowscriptaccess="always" allowfullscreen="true" flashvars="streamer=IP:1935/simplevideostreaming&file=Extremists.m4v&type=rtmp&autostart=true" />

```

> Note: To play H.264 or MP3 content that is in a folder inside of the [install-dir]/content folder, prepend mp4: and mp3: respectively to the folder name. For example, to play the media file:

---

<div class="post-metadata">

**Author:** ![Andy\_Schnadarle](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Andy\_Schnadarle](https://community.wowza.com/u/Andy_Schnadarle)\
**Post date:** [February 19, 2010, 3:16pm UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/3 "2010-02-19T15:16:36Z")

</div>

> you are going to setup an application named **simplevideostreaming** to stream pre-recorded video content from the **[install-dir]/content** folder.
> 
> **Instructions**

- Download and install **[Wowza Media Server](https://www.wowza.com/store.html)**

- Create the folder **[install-dir]/applications/simplevideostreaming** to server as the Wowza Server application folder (may already exist if examples installed)

- Download the [JW Player](http://www.longtailvideo.com/players/) and unzip

- Edit the **readme.html** in root directory of the zip archive, and make the following changes to the **script** section (starting around line 24):

- Due to a security restriction in Flash, it is necessary to host the following files at your web server: **readme.html** , **player.swf** , **swfobject.js** and **yt.swf** (they all need to be in the same folder). To play, open a web browser and enter the url for the **readme.html** file.

- Right click on the flash movie below the title **single file, with preview image** and select **Settings…** from the popup menu.

- Click the **Advance…** button and it will pop open a browser window.

- Click the **Global Security Settings Panel** link.

- A new web page will open with a flash swf file in the top right corner.

- In this flash movie select **Add location…** from the **Edit locations…** popup.

- Select **Browse for files…** and select the **player.swf** that is in the same folder with the **readme.html** file and click **Open**

- To play, close all open web browsers windows and double click **readme.html**.

---

<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 25, 2010, 2:19pm UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/4 "2010-01-25T14:19:47Z")

</div>

I notice that the JW Player is now on version 5.0. I am guessing the problem still exists (aka it doesn’t know the height/width)? I was going through the code and it appears they are using a new architecture. I would assume the new file would be com/longtailvideo/jwplayer/media/RTMPMediaProvider.as.

Granted it does not lend itself to this simple fix any longer. You wouldn’t have any info on this would you?

I’m not very familiar with the JW Player code but I am not sure the problem even still persists other than I am never seeing any video.

---

<div class="post-metadata">

**Author:** ![Tac\_Tacelosky](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tac\_Tacelosky](https://community.wowza.com/u/Tac_Tacelosky)\
**Post date:** [January 25, 2010, 7:56pm UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/5 "2010-01-25T19:56:34Z")

</div>

There are some changes between JW Media Player 4 and 5. The “type=rtmp” is now required, and there are some changes between ‘id’ and ‘location’ in the playlist.

We just upgraded [tobaccovideos.com](http://tobaccovideos.com) ([http://www.tobaccovideos.com/](http://www.tobaccovideos.com/)) today, it uses Wowza Media Server 2 and JW Media Player, streaming via a playlist. A sample playlist looks like this

```auto
<playlist version="1.1" xmlns="http://xspf.org/ns/0/"> 
	<title>Selected Videos</title> 
	<info>http://www.tobaccovideos.com</info> 
	<trackList> 
<track> 
	<title>The EFFECTS of SMOKING CHESTERFIELD CIGARETTES</title> 
	<location>videos/originals/commercials/chesterfield_dvd_6/001chesterfield.mp4</location> 
	<image>http://tobaccovideos.com/videos/thumb/118.jpg</image> 
	<meta rel='captions'>/player/video_captions.php?video_id=118</meta> 
	<meta rel='streamer'>rtmp://tobaccovideos.com:1935/simplevideostreaming</meta> 
	<meta rel='type'>rtmp</meta> 
</track> 
 
<track> 
	<title>I have some good news why you should change to Chesterfield</title> 
	<location>videos/originals/commercials/chesterfield_dvd_6/002chesterfield.mp4</location> 
	<image>http://tobaccovideos.com/videos/thumb/119.jpg</image> 
	<meta rel='captions'>/player/video_captions.php?video_id=119</meta> 
	<meta rel='streamer'>rtmp://tobaccovideos.com:1935/simplevideostreaming</meta> 
	<meta rel='type'>rtmp</meta> 
</track> 
 
 
</trackList> 
</playlist>

```

It took much longer than I’d like to admit to get everything working, since JW Media Player isn’t well documented in certain areas (like what’s changed in an upgrade).

Tac

---

<div class="post-metadata">

**Author:** ![Tac\_Tacelosky](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tac\_Tacelosky](https://community.wowza.com/u/Tac_Tacelosky)\
**Post date:** [March 28, 2010, 3:59pm UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/6 "2010-03-28T15:59:24Z")

</div>

Wink player looks interesting, but it appears to be completely stand-alone, no API or Javascript integration other than invoking it. JW Media Player has a whole API library, although at the moment it seems be in transition from the Version 4 API to Version 5.

I couldn’t find anything on the Wink site about integrating Javascript. Of particular importance to us is the ability to seek, and also to receive events.

On a note related to Wowza, it would be FABULOUS if the log reported both what the SEEK request was and where the SEEK actually went to. Right now the log reports a SEEK, so it seems trivial to add the argument that came in.

SEEK seems to automatically start playing as well, although I think that might be a JW issue rather than Wowza.

Tac

---

<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 25, 2010, 8:10pm UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/7 "2010-01-25T20:10:36Z")

</div>

Here are revised instructions:

[https://www.wowza.com/forums/showthread.php?p=34880](https://www.wowza.com/forums/showthread.php?p=34880)

Also, use “provider=rtmp” in JW Player 5

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 14, 2010, 10:45am UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/8 "2010-02-14T10:45:05Z")

</div>

Nothing is wrong, it’s because JW Player is adding the prefix. If you add it, it’s being added again 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:** [August 8, 2010, 1:02pm UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/9 "2010-08-08T13:02:09Z")

</div>

in the JW Player “file” Flashvar, e.g. “&file=mp4:sample.mp4”

“mp4:” is the prefix. In some versions of JW Player it caused a problem to add this prefix. I don’t think it is a problem in current version. But you can try with and without.

Richard

---

<div class="post-metadata">

**Author:** ![MidGart\_MidGart](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@MidGart\_MidGart](https://community.wowza.com/u/MidGart_MidGart)\
**Post date:** [August 8, 2010, 3:34am UTC](https://community.wowza.com/t/using-jw-player-4-with-wowza-server/33/10 "2010-08-08T03:34:42Z")

</div>

> Nothing is wrong, it’s because JW Player is adding the prefix. If you add it, it’s being added again anyway.
> 
> Richard

What type of prefix? Do you know exactly?
