ThemeForest

YouTube Player Error

271 posts
  • Bought between 1 and 9 items
  • Contributed a Tutorial to a Tuts+ Site
  • Europe
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 5 000 and 10 000 dollars
07happydays says

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?

1844 posts
  • Elite Author
  • 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
  • Bought between 10 and 49 items
+4 more
bitfade says

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?
add this to your code
Security.allowDomain("*")
1617 posts
  • Exclusive Author
  • 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
+2 more
flashedge says

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")
271 posts
  • Bought between 1 and 9 items
  • Contributed a Tutorial to a Tuts+ Site
  • Europe
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 5 000 and 10 000 dollars
07happydays says

Many thanks!

1518 posts
  • 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
dSKY says

didn’t know about policy files (they are not listed on the API page)
Thanks ! :)

1844 posts
  • Elite Author
  • 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
  • Bought between 10 and 49 items
+4 more
bitfade says

they are already loaded by default, the loadPolicyFile method is needed when policy file has custom url

1605 posts
  • 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
  • Referred between 1 and 9 users
+5 more
DaniMun says

didn’t know about policy files (they are not listed on the API page)
Thanks ! :)

The YouTube API sucks big time :yawn: – I’m currently struggling to build a chromeless YT-driven videoplayer and I’m sick of the lack of proper API documentation

1844 posts
  • Elite Author
  • 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
  • Bought between 10 and 49 items
+4 more
bitfade says

I’m currently struggling to build a chromeless YT-driven videoplayer
welcome to hell

this is from my code:
if (killPlayerLoop == null) {
    killPlayerLoop = Run.every(0.1,killTheDamnPlayers)                
}
4126 posts
  • Bought between 1 and 9 items
  • Brazil
  • Community Superstar
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
tsafi says


I’m currently struggling to build a chromeless YT-driven videoplayer
welcome to hell

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

271 posts
  • Bought between 1 and 9 items
  • Contributed a Tutorial to a Tuts+ Site
  • Europe
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 5 000 and 10 000 dollars
07happydays says

Yeah, vimeo is like shit, but youtube has a nice api. Very easy to use, I think…

by
by
by
by
by