Jump to content

ATTN:PAKAGE & OTHER CODE HEADZ


Guest Room101
 Share

Recommended Posts

YO!

So I am at MDS in the midst of our FLASH section of course.

Trying to link to external URL to play video inside a video component FLV within my flash file.

Anyone had anyluck with this.

Seems that YouTube has killed off most attempts at work arounds.

 

I ralise I could just download the vids myself using KEEPVID etc... but I dont want to host these videos.

Link to comment
Share on other sites

so put a file in your web root called crossdomain.xml and in it put something like this:

 

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*.youtube.com" />
  <allow-access-from domain="youtube.com" />
</cross-domain-policy>

 

You can probably find a more recent version of the crossdomain policy file on the web though.

 

And also not sure if this works with youtube as you'd need to know the location of the actual file not just a reference/id etc[/code]

Link to comment
Share on other sites

cheers man.

thats some good code. did you write it?

 

cross domain works real good for pretty much all videos EXCEPT youtube.

seems like they hate the idea of open-source, even though it's a sharing based idealogy.

 

looks as if i will have to ingest some footage and host it myself then link to it and just take the bandwidth hit when me amazing flash shiz goes viral.

 

Link to comment
Share on other sites

not so much about embedding here as i am MAKING the player. an embedded player inside my player might look a bit whack!

doin my movie FLASH site. There's ways for me to get my own copies of footage i won't talk about on here

 

thanks guys.

Link to comment
Share on other sites

yeah thought that might be the case.

 

youtube has released an api you can link directly to from within as3.

 

http://code.google.com/apis/youtube/flash_api_reference.html

 

http://www.zedia.net/2010/using-the-actionscript-3-youtube-api/

 

Im not sure if you can use any custom components with it, but you could probably just make yourself a little player which sits over top adding the functionality you want supplied in the api, a bit of a hassle though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Upcoming Events

    No upcoming events found
×
  • Create New...