I have set up a Wowza instance on EC2 and I can stream the sample file. I can even stream one of my own files from my s3bucket using JWPlayer 6. But, I cannot get adaptive bitrate to work. When I look at the network console in Firebug, the player is requesting crossdomain.xml from the root of my instance which fails because it doesn’t exist.
I followed the instructions here and edited vhost.xml (although I tried it without the edit because it looked to me like the second to last entry already had the required entry).
I have 4 videos in my s3 bucket and a smil manifest (video.smil) that looks like this:
<smil>
<head>
</head>
<body>
<switch>
<video src="mp4:video_320X180.mp4" system-bitrate="250000" width="320"/>
<video src="mp4:video_480X270.mp4" system-bitrate="400000" width="480"/>
<video src="mp4:video_960X540.mp4" system-bitrate="1000000" width="960"/>
<video src="mp4:video_1280X720.mp4" system-bitrate="1400000" width="1280"/>
</switch>
</body>
</smil>
my JWPlayer urls are:
The player loads, but when I press play (on a pc or ios device) the “loading” spinner runs for about 15 seconds and the player displays the error “manifest not found”. In the console on chrome I can see that as soon as I click play the browser makes a request to:
Request URL:http://my-instance-dns.compute.amazonaws.com/crossdomain.xml which eventually fails with with no response code.
This URL plays fine, but it is not adaptive which is what we are after: rtmp://my-instance-dns.compute.amazonaws.com/vods3/definst/mp4:amazons3/mybucket/assets/video/test/video_1280X720.mp4
What am I doing wrong?
EDIT: For what it is worth, I have a local smil. When I load it into the flash player it works fine.
<smil>
<head>
<meta base="rtmp://my-instance-dns.compute.amazonaws.com/vods3/_definst_"/>
</head>
<body>
<switch>
<video src="amazons3/mybucket/assets/video/test/video_320X180.mp4" system-bitrate="250000" width="320"/>
<video src="amazons3/mybucket/assets/video/test/video_480X270.mp4" system-bitrate="400000" width="480"/>
<video src="amazons3/mybucket/assets/video/test/video_960X540.mp4" system-bitrate="1000000" width="960"/>
<video src="amazons3/mybucket/assets/video/test/video_1280X720.mp4" system-bitrate="1400000" width="1280"/>
</switch>
</body>
</smil>