Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Crossdomain policy restrictions


I am trying to use Amazon Cloudfront to stream a film I produced. The materials below are the trailer, which I am using to work out the bugs. In fact, the domain for this website is more or less inactive, and I'm using it as a test platform.

I can play the file locally from my own web server. So the player works on files on the same server.

When I go to the files on cloudfront I get an error that says "Task Queue failed at step 5: Playlist could not be loaded due to crossdomain policy restrictions."

A little research suggested I need an xml file in the root where the media files are located ... Amazon's S3 simple storage service.

Nothing works. Nothing. I have been struggling with this for DAYS ... and I need to get it fixed. Today if possible.

Here are the relevant S3 files ...

https://s3.amazonaws.com/teapartycult/MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012Sony2128.mp4
https://s3.amazonaws.com/teapartycult/crossdomain.xml

Here is a link to the page where the video player gives me the error.

http://takeontheteaparty.com/videos/trailer-in-2128-kpbs/

Here is the embed code

<embed
id='mediaplayer1'
name='mediaplayer2'
src='http://takeontheteaparty.com/wp-content/plugins/jw-player-plugin-for-wordpress/player.swf'
width='480'
height='270'
allowfullscreen='true'
allowscriptaccess='always'
bgcolor='#000000'
wmode='opaque'
provider='rtmp'
streamer='rtmp://s1ghspazjf1lbx.cloudfront.net/cfx/st/:1935/cfx/st'
flashvars='file=mp4:MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012Sony2128'/>

And the xml cross domain file.

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only" />
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*"
headers="SOAPAction" />
</cross-domain-policy>

Please help.

17 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Use this embed code instead:

<embed id='mediaplayer1' name='mediaplayer2' src='http://takeontheteaparty.com/wp-content/plugins/jw-player-plugin-for-wordpress/player.swf' width='480' height='270' allowfullscreen='true' allowscriptaccess='always' bgcolor='#000000' wmode='opaque' flashvars='file=mp4:MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012Sony2128&provider=rtmp&streamer=rtmp://s1ghspazjf1lbx.cloudfront.net/cfx/st/:1935/cfx/st'/>

JW Player

User  
0 rated :

First of all, thanks for getting back so soon.

It almost works. I'm audio but not video.

JW Player

User  
0 rated :

I'm GETTING audio, but not video.

Ethan Feldman

JW Player Support Agent  
0 rated :

How was the mp4 file encoded?

JW Player

User  
0 rated :

I used Sony Vegas Pro ... and I actually a number of different versions. One of tasks I'm trying to accomplish is to pick the best encoding for the film.

Here is a direct link to the trailer. You can actually watch it directly at the S3 site.

https://s3.amazonaws.com/teapartycult/MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012Sony2128.mp4

Ethan Feldman

JW Player Support Agent  
0 rated :

I downloaded your file and inspected it with QuickTime.

The video is encoded in MPEG-4, but it needs to be H.264 in order for it to work in Flash / HTML5. Re-encoding in H.264 will fix it.

JW Player

User  
0 rated :

That explains why one of the files works.

mp4:MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012MPEGIpod

That encoding says is for an iPod ... which would be h.264.

These others don't work. They are encoded using something called "Sony AVC."

mp4:MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012SonyNet30p
mp4:MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012Sony2128
mp4:MegadittoesWebsiteTrailerOldWDefeatTag3-19-2012Sony6256

Just for future reference, so I don't have to bother you again on this particular issue ... what did you do? Does that crossdomain.xml do anything? If it doesn't, I'm going to take it down.

JW Player

User  
0 rated :

I'm back. I just looked at the "movie inspector" in quick time for all of these. It says they are ALL "h.264."

Now I can use the encoding that works ... but it's the grainiest and not really satisfactory, especially since I know the other looks so much better.

Ethan Feldman

JW Player Support Agent  
0 rated :

The crossdomain.xml doesn’t apply here because you are using RTMP.

The file you linked to me above said MPEG-4 in the inspector.

You just need to make sure that everything is encoded in H.264 for the video, and AAC for the audio.

Reference – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats

JW Player

User  
0 rated :

Thank you sir. You have been a big help ... and fast too.

I will figure out the rest from here.

Ethan Feldman

JW Player Support Agent  
-1 rated :

Np

JW Player

User  
0 rated :

I have this embedded code :

<embed src="http://share.learningcatalyts.in/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf" flashvars="file=http://share.learningcatalyst.in/wp-content/uploads/2012/06/test.mp4&dock=true" width="400" height="300"/>

for video
http://share.learningcatalyst.in/1031-2

but in say movie not loaded

Ethan Feldman

JW Player Support Agent  
0 rated :

Your link requires a log in, please advise.

JW Player

User  
0 rated :

You can check this link http://infolake.in/video-testing-share/

Ethan Feldman

JW Player Support Agent  
0 rated :

http://share.learningcatalyts.in/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf does not load.

Says can’t be found. That’s why.

JW Player

User  
0 rated :

Hi,


I was facing the issue of crossdomains.
Then I uploaded the crossdomain.xml in root domain.
and now Im facing the error: Task Queue failed at step 5: crossdomain issues Playlist could not be loaded http status 500 internal server error

By the way I am playing the videos with in the server itself.
Even though the code worked perfectly on local.. i'm facing error in dev server.

my code is:

<object type="application/x-shockwave-flash" data="http://player.longtailvideo.com/player.swf" width="320" height="240">
<param name="movie" value="http://player.longtailvideo.com/player.swf" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="flashVars" value="controlbar=over&file=<?=$full_url?>" />
</object>

xml:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only" />
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" />
</cross-domain-policy>


any help is much appreciated!

Thanks
savvana

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

This question has received the maximum number of answers.