Wowza Community

newbe help wowza +jw6 +akamai

this code is work is wotking

<div style="width:640px;height:360px;" id="player" ></div>
<script type="text/javascript">
 jwplayer("player").setup(
 {
 	playlist:
	[{
		file: 'http://video.horsezipsworld.com/live1/t2/mmanifest.f4m?DVR',
 		provider: 'AkamaiAdvancedJWStreamProvider.swf',
		type:'mp4'
	}],
 	fallback: false,
 	autostart: true,
 	width: 320,
 	height: 250,
 	primary: "flash",
 	stagevideo: false
});
</script>

what i need to know is how /where 2 add a source of http://video.horsezipsworld.com/live1/t2/playlist.m3u8?DVR"

for ios users

i would also like 2 add a 3rd source of rtmp://video.horsezipsworld.com/live1/t2

be for i started using the akamai plugin i was using this

<script type="text/javascript">
 jwplayer("player").setup({
	width: "320",
	height: "250",
	primary: "flash",
	stagevideo: false,
	autostart: "true",
	sources: [{
		file: "http://video.horsezipsworld.com/live1/t2/playlist.m3u8?DVR"
	},{
		file: "rtmp://video.horsezipsworld.com/live1/t2"
	}],
	rtmp: {
		bufferlength: 0
	},
});
</script>

but with the plugin i dont know hpw /where 2 add more surces

thanks jimmy sorry for the bad typing im in a wheel chair i have cebrail palsy

.

Hi,

I edited your post to make the code blocks more readable. I hope you don’t mind.

With JW Player 6, you add separate sources using a sources block inside the playlist block. The following should work.

	. . .
	playlist: [{
		sources: [{
			file: "http://video.horsezipsworld.com/live1/t2/playlist.m3u8?DVR"
		},{
			file: "http://video.horsezipsworld.com/live1/t2/manifest.f4m?DVR",
			provider: 'AkamaiAdvancedJWStreamProvider.swf',
			type:'mp4'
		},{
			file: "rtmp://video.horsezipsworld.com/live1/t2"
		}]
	}],
	. . . 

According to this thread on the JW Player Support Forum, it is a bit unclear if the Akamai Plugin currently works with the sources block. It doe appear as if Akamai is addressing the issue.

Regards,

Roger.

Hi Jimmy,

On your page, there is an error with the javascript that loads the player.

It should be like this,

<script type="text/javascript">
jwplayer("player").setup({
	width: "320",
	height: "250",
	primary: "flash",
	stagevideo: false,
	playlist: [{
		sources: [{
			file: "http://video.horsezipsworld.com/live1/t2/playlist.m3u8?DVR"
		},{
			file: "http://video.horsezipsworld.com/live1/t2/manifest.f4m?DVR",
			provider: 'AkamaiAdvancedJWStreamProvider.swf',
			type:'mp4'
		},{
			file: "rtmp://video.horsezipsworld.com/live1/t2"
		}]
	}]
});
</script>

Note the closing }); and no comma after the last }].

Roger.

player won’t load at all see http://www.horsezipsworld.com/t5.htm

jimmy

that fixed the load probem but the pligin says file not found o i’m off to talk 2 jw support and akamai more thanks for your time

jimmy