Hi guys,
I have a small problem with one youtube player. Event if I allow youtube domain and set my player security I got this error:
* Security Sandbox Violation * SecurityDomain ‘http://s.ytimg.com/yt/swfbin/apiplayer3-vfl4hk1e1.swf’ tried to access incompatible context ‘file:///C|/work/.../project.swf’
Do you know what is happening?
- Sold between 100 000 and 250 000 dollars
- Author had a File in an Envato Bundle
- Has been a member for 4-5 years
- Author had a Free File of the Month
- Won a Competition
- Author was Featured
- Item was Featured
- Bought between 10 and 49 items
flashanctuary saidadd this to your code
Hi guys,I have a small problem with one youtube player. Event if I allow youtube domain and set my player security I got this error:
* Security Sandbox Violation * SecurityDomain ‘http://s.ytimg.com/yt/swfbin/apiplayer3-vfl4hk1e1.swf’ tried to access incompatible context ‘file:///C|/work/.../project.swf’
Do you know what is happening?
Security.allowDomain("*")
- Exclusive Author
- Item was Featured
- Author was Featured
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
- Sold between 50 000 and 100 000 dollars
- Has been a member for 3-4 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Europe
The complete policies should look like this.
Security.allowDomain("www.youtube.com");
Security.allowDomain("youtube.com");
Security.allowDomain("s.ytimg.com");
Security.allowDomain("i.ytimg.com");
Security.loadPolicyFile("http://i.ytimg.com/crossdomain.xml");
Security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
Security.loadPolicyFile("http://s.ytimg.com/crossdomain.xml")Many thanks!
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 5-6 years
- Referred between 100 and 199 users
- Sold between 50 000 and 100 000 dollars
didn’t know about policy files (they are not listed on the API page)
Thanks ! 
- Sold between 100 000 and 250 000 dollars
- Author had a File in an Envato Bundle
- Has been a member for 4-5 years
- Author had a Free File of the Month
- Won a Competition
- Author was Featured
- Item was Featured
- Bought between 10 and 49 items
they are already loaded by default, the loadPolicyFile method is needed when policy file has custom url
- Author had a Free File of the Month
- Microlancer Beta Tester
- Beta Tester
- Contributed a Tutorial to a Tuts+ Site
- Won a Competition
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Item was Featured
- Author was Featured
- Referred between 1 and 9 users
- Sold between 100 000 and 250 000 dollars
- Author had a File in an Envato Bundle
- Has been a member for 4-5 years
- Author had a Free File of the Month
- Won a Competition
- Author was Featured
- Item was Featured
- Bought between 10 and 49 items
DaniMun saidwelcome to hell
I’m currently struggling to build a chromeless YT-driven videoplayer
this is from my code:
if (killPlayerLoop == null) {
killPlayerLoop = Run.every(0.1,killTheDamnPlayers)
}
bitfade said
DaniMun saidwelcome to hell
I’m currently struggling to build a chromeless YT-driven videoplayer
this is from my code:
if (killPlayerLoop == null) { killPlayerLoop = Run.every(0.1,killTheDamnPlayers) }
Say thank you if you use YouTube API , Vimeo player API is garbage at this matter
Yeah, vimeo is like shit, but youtube has a nice api. Very easy to use, I think…

– I’m currently struggling to build a chromeless YT-driven videoplayer and I’m sick of the lack of proper API documentation