Tom Senner
Tom Senner

Reputation: 548

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

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 it's working still fine in Chrome (Win, 49.0.2623.110 m).

The graphic elements of the video-player load fine in both, so the flash-plugin is working, but only Chrome shows the actual youtube-video.

I know the flash API is deprecated (https://developers.google.com/youtube/flash_api_reference), but why is it still working in Chrome then? Any ideas of how I can get it to run in firefox again?

PS: Because of the complexity of the video-player and its function I cannot switch to the html5 version of the youtube-player-api.

UPDATE:

<object width="640" height="360" id="video" data="video.swf" type="application/x-shockwave-flash">
            <param value="video.swf" name="movie">
            <param value="xml=xml?i=48-96-43" name="FlashVars">
            <param value="high" name="quality">
            <param value="#181818" name="bgcolor">
            <param value="true" name="play">
            <param value="true" name="loop">
            <param value="window" name="wmode">
            <param value="showall" name="scale">
            <param value="true" name="menu">
            <param value="false" name="devicefont">
            <param value="" name="salign">
            <param value="sameDomain" name="allowScriptAccess">
            <a href="http://www.adobe.com/go/getflash">
                <img alt="Get Adobe Flash player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif">
            </a>
        </object>

Upvotes: 1

Views: 2046

Answers (1)

VC.One
VC.One

Reputation: 15881

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");

Upvotes: 1

Related Questions