Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

help with playlist - live wowza stream

16 replies [Last post]
Reply

can someone plesae tell me what's wrong with this playlist?

I'm trying to play a live audio stream

thank you

<rss version="2.0" xmlns:jwplayer="http://developer.longtailvideo.com/">
<channel>
<item>
<jwplayer:file>kgb.sdp</jwplayer:file>
<jwplayer:streamer>rtmp://wowza.ourdomain.net:1935/kgb/_definst_</jwplayer:streamer>
<jwplayer:provider>rtmp</jwplayer:provider>
</item>
</channel>
</rss>

Reply

Do you have a link to where this is running?

Reply

the playlist is at http://207.158.39.199/jwplayer/kgb.xml

I've since gone back to working with the wowza generated playlist. (just got a patch from wowza) and that's not working either. ugh!

http://207.158.39.199/jwplayer

works ok with a hard coded playlist though

thank you

Reply

Hm,it sounds like Wowza's playlist that generates (even with the patch) has an issue then...

But if I go to our wizard - http://www.longtailvideo.com/support/jw-player-setup-wizard

And just use this as the file, it works... - http://wowza.sdca.commercialnetworkservices.net:1935/shelterisland/smil:shelterisland.smil/jwplayer....

<script type='text/javascript' src='jwplayer.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': 'player.swf',
    'file': 'http://wowza.sdca.commercialnetworkservices.net:1935/shelterisland/smil:shelterisland.smil/jwplayer.rss',
    'controlbar': 'bottom',
    'width': '470',
    'height': '320'
  });
</script>

Reply

ya my real problem is that I need to change playlists in javascript...so hard coding is not going to work. I hard coded just for a test. so either I need the wowza playlist working or I need to be able to load my playlist, like kgb.xml

either way it seems to be the only way to change a live source...is that right?

thank you

Reply

odd I wonder why your code is working??? that works? odd...

my code is almost identical?! (scratching my head)

Reply

Your code is not working because you are loading a playlist in JavaScript and loading their playlist xml file at the same time, you can't combine two different playlist types like that, it has to be one or the other. ;)

Reply

I am? I have (note the hard coded playlist is commented out):

script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'playerID',
'width': '720',
'height': '410',
'provider': 'http',
'autoplay': 'true',
'live': 'true',
'file': 'http://wowza.sdca.commercialnetworkservices.net:1935/shelterisland/smil:shelterisland.smil/jwplayer....',
//'plugins': 'qualitymonitor-2',
/*'playlist': [
{
'title': 'ShelterIsland',
'provder': 'rtmp',
//'image': '/thumbs/sintel.jpg',
//'duration': '888',
'streamer': 'rtmp://wowza.sdca.commercialnetworkservices.net/shelterisland/_definst_',
'levels': [
{ bitrate:"800", file:"flv:shelterisland_1" },
{ bitrate:"350", file:"flv:shelterisland_2" },
{ bitrate:"100", file:"flv:shelterisland_3" }
]
}
],
*/

'modes': [

{type: 'flash', src: 'player.swf'},
{type: 'html5',
config: {
'file': 'http://wowza.sdca.commercialnetworkservices.net:1935/shelterisland/smil:shelterisland.smil/playlist....',
'provider': 'video',
'autoplay': 'true'
}
}
]

});

Reply

Ah you do.

You have provider set to http though.

So you should remove that.

Reply

you nailed it - THANK YOU

but now I have just one more issue with an audio only stream. code is below. the player says loaded playlist is empty but I can see in the xml source it's not.

any ideas?

thanks again

<script type="text/javascript">
jwplayer('audioplayer').setup({
'id': 'AudioplayerID',
'width': '720',
'height': '450',
'autoplay': 'true',
'allowfullscreen': 'false',
'live': 'true',
'file': 'http://wowza.sdca.commercialnetworkservices.net:1935/kfmb/kfmb.sdp/jwplayer.rss',
'modes': [

{type: 'flash', src: 'player.swf'},
{type: 'html5',
config: {
'file': 'http://wowza.sdca.commercialnetworkservices.net:1935/kfmb/kfmb.sdp/playlist.m3u8',
'provider': 'video',
'autoplay': 'true'
}
}
]

});

Reply

NP!

I think it might have to do with the playlist location, because it is under a .sdp sub directory.

If I use the files in the playlist, it works fine:

<script type='text/javascript' src='jwplayer.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': 'player.swf',
    'file': 'kfmb.sdp',
    'provider': 'rtmp',
    'streamer': 'rtmp://wowza.sdca.commercialnetworkservices.net:1935/kfmb/_definst_',
    'controlbar': 'bottom',
    'width': '470',
    'height': '320'
  });
</script>

Reply

you must be right. I pointed it to that kgb.xml file and "I can hear them now"

here is the working code for forum archive. thanks again

<script type="text/javascript">
jwplayer('audioplayer').setup({
'id': 'AudioplayerID',
'width': '720',
'height': '450',
'autoplay': 'true',
'allowfullscreen': 'false',
'live': 'true',
'file': 'kgb.xml',
'modes': [

{type: 'flash', src: 'player.swf'},
{type: 'html5',
config: {
'file': 'http://wowza.sdca.commercialnetworkservices.net:1935/kfmb/kfmb.sdp/playlist.m3u8',
'provider': 'video',
'autoplay': 'true'
}
}
]

});

Reply

Np

Reply

I am posting this follow-up for the forum archive.

when using wowza's generated rss for an audio only stream, you need to make a .smil file, even for just one bitrate. the wowza generated .rss w/out a smil file doesn't work.

Reply

Interesting, thanks for letting me know.

Reply

The <streamer:> and <file:> values should be the same.. so whatever ur streamer (domain) is... enter it as ur file name... (exactly)!

Reply

File is relative to streamer, usually they are different.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options