JWPlayer file parameter problem

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
<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
<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

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

<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

Richard