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