Guest Posted June 29, 2010 Share Posted June 29, 2010 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 More sharing options...
Guest Posted June 29, 2010 Share Posted June 29, 2010 ps; i can get it to work with most video URL's. I specifcally want the YouTube workaround. Link to comment Share on other sites More sharing options...
Pakage Posted June 29, 2010 Share Posted June 29, 2010 not totally sure sorry. never tried to do this. google and AS3 forums are your friends though. try asking on www.kirupa.com they've always been a big help to me. Link to comment Share on other sites More sharing options...
d-verse Posted June 30, 2010 Share Posted June 30, 2010 your probably going to have to set-up a cross domain policy file if your trying to load files which sit outside of the domain your .swf resides on Link to comment Share on other sites More sharing options...
d-verse Posted June 30, 2010 Share Posted June 30, 2010 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 More sharing options...
Guest Posted July 1, 2010 Share Posted July 1, 2010 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 More sharing options...
Pakage Posted July 1, 2010 Share Posted July 1, 2010 what a shame you cant jsut embed the player like you can in html. Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2010 Share Posted July 2, 2010 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 More sharing options...
d-verse Posted July 2, 2010 Share Posted July 2, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now