Youtube Flash API (AS3) not working in Firefox but in Chrome

前端 未结 1 1573
自闭症患者
自闭症患者 2021-01-27 01:30

I\'m wondering why since very recently my own programmed flash-video-player (using the YouTube ActionScript 3.0 Player API) is not working anymore in Firefox (Win, 45.0.1) but i

相关标签:
1条回答
  • 2021-01-27 02:11

    Here is an example of a chromeless Youtube SWF working in Firefox.

    The short answer is... Make sure your SWF file is being served from an https location. If there is no (SSL) green padlock, the SWF will not load up any other external data. This seems to be a new (security) expectation by Firefox for Flash content that tries to access further external data.

    Also update any http:// references in your AS3 code to become https://.

    Examples would be :

    • Security.allowDomain("https://www.youtube.com");
    • loader.load(new URLRequest ("https://www.youtube.com/apiplayer?version=3") );
    • player.cueVideoByUrl("https://www.youtube.com/v/YOUR_VID_ID?version=3");
    0 讨论(0)
提交回复
热议问题