# JWPlayer file parameter problem

**URL:** <https://community.wowza.com/t/jwplayer-file-parameter-problem/39648>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [January 23, 2013, 6:07pm UTC](https://community.wowza.com/t/jwplayer-file-parameter-problem/39648 "2013-01-23T18:07:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)\
**Post date:** [January 23, 2013, 6:07pm UTC](https://community.wowza.com/t/jwplayer-file-parameter-problem/39648/1 "2013-01-23T18:07:37Z")

</div>

Hi,

I use JWPlayer to play live video from my Wowza server.

Problem:

If I use

**file** with a value “mystream.stream” the player will fail

**file** with a value “full path to live stream” the player will play

Here example:

1. Example FAILS

```auto
<div id='mediaplayer'></div>
<script type="text/javascript">
  jwplayer('mediaplayer').setup({
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'provider': 'rtmp',
    'streamer': 'rtmp://my.server.com/application',
[SIZE=5] [B] 'file': 'myCool.stream',[/B][/SIZE]
    'image': 'http://example.com/thumbs/sintel.jpg',
    'modes': [
        {type: 'flash', src: 'player.swf'},
        {
          type: 'html5',
          config: {
           'file': '/videos/sintel.mp4',
           'provider': 'video'
          }
        },
        {
          type: 'download',
          config: {
           'file': '/videos/sintel.mp4',
           'provider': 'video'
          }
        }
    ]
  });
</script>

```

1. Example **WORKS**

```auto
<div id='mediaplayer'></div>
<script type="text/javascript">
  jwplayer('mediaplayer').setup({
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'provider': 'rtmp',
    'streamer': 'rtmp://my.server.com/application',
[SIZE=5] [B] 'file': ''rtmp://my.server.com/application/flv:myCool.stream',[/B][/SIZE]
    'image': 'http://example.com/thumbs/sintel.jpg',
    'modes': [
        {type: 'flash', src: 'player.swf'},
        {
          type: 'html5',
          config: {
           'file': '/videos/sintel.mp4',
           'provider': 'video'
          }
        },
        {
          type: 'download',
          config: {
           'file': '/videos/sintel.mp4',
           'provider': 'video'
          }
        }
    ]
  });
</script>

```

Thanks,

Any help appreciated

---

<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 23, 2013, 5:28pm UTC](https://community.wowza.com/t/jwplayer-file-parameter-problem/39648/2 "2013-01-23T17:28:08Z")

</div>

There is just one string for rtmp connection and stream name in JW Player 6. Here is a simple example that includes iOS:

```auto
<html>
<head>
<title>JW Player 6</title>
<script type="text/javascript" src="/jwplayer/jwplayer.js" ></script>
<script>jwplayer.key="[key]"</script>
</head>
<body>
<div id="player">Loading the player...</div>
<script type="text/javascript">
    jwplayer("player").setup({
   	sources: [{
            file: "rtmp://localhost/vod/mp4:sample.mp4"
        },{
            file: "http://192.168.1.25:1935/vod/sample.mp4/playlist.m3u8"
        }]
    });
</script>
</body>
</html>

```

Also take a look at JW Player setup wizard:

[http://www.longtailvideo.com/jw-player/wizard/#rtmp](http://www.longtailvideo.com/jw-player/wizard/#rtmp)

Richard
