Youtube Flash API (AS3) not working in Firefox but in Chrome - google-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>

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

Related

Embed wmv in all Chrome, IE and Firefox

The code below works in IE, Firefox but not Chrome. What change is necessary to make it work in Chrome. Chrome says "No plug-in available to display this content".
I got the code from:
Embedding Windows Media Player for all browsers
<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701" standby="loading microsoft windows media player components..." type="application/x-oleobject" width="320" height="310">
<param name="filename" value="./test.wmv">
<param name="animationatstart" value="true">
<param name="transparentatstart" value="true">
<param name="autostart" value="true">
<param name="showcontrols" value="true">
<param name="ShowStatusBar" value="true">
<param name="windowlessvideo" value="true">
<embed src="./test.wmv" autostart="true" showcontrols="true" showstatusbar="1" bgcolor="white" width="320" height="310">
You will need to download the plugin for WMV files on the client side. That means that for anyone who visits the site with Chrome will need to have already installed the Chrome plugin locally.
HTML5 Video/Flash video may be a better way to accomplish this and make it seamless for the user. Here's an example for HTML 5 video

Embed wmv video does not allows fullscreen button

I am trying to embed a wmv video in an html code. The file is playing normally, but I want the website's user, to be able to see the fullscreen button, in order to enter a fullscreen mode.
However, the button does not appears. I have also EnableFullScreenControls flag turned on. Hoever it makes no difference. The code is shown below
<object id="MediaPlayer" width="500" height="500" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
standby="Loading Windows Media Player..." TYPE="application/x-oleobject">
<param name="FileName" VALUE="file:///C:/Users/john/Desktop/modus-files/HTML/videos/Danger.wmv">
<param name="ShowControls" VALUE="true">
<PARAM NAME="fullScreen" VALUE="true">
<PARAM name="uiMode" value="full">
<param name="ShowStatusBar" value="false">
<param name="ShowDisplay" VALUE="false">
<param name="autostart" VALUE="false">
<PARAM NAME="EnableFullScreenControls" VALUE="1">
<embed type="application/x-mplayer2" src="file:///C:/Users/john/Desktop/modus-files/HTML/videos/Danger.wmv" name="MediaPlayer"
width="400" height="400" fullScreen="full" ShowControls="1" ShowStatusBar="0" ShowDisplay="1" autostart="0"> </embed>
</object>
Thanks
I didn't found out what was the problem above. But as other people may have the same problem, I just wanted to post my workaround. I converted the videos to mp4, and then used the jplayer at the site. It is an html player and free and open source. That done the job quite easily. It is also (personal opinion) much beautiful that the media player.

mediaplayer plug in error

I have created an html page with embedded audio in it, when I try to run it, Firefox and chrome do not display any media player on my HTML page. I recently downloaded a quicktime plugin but still Firefox does not identify it. May I know any supported media player plug-in for firefox and chrome?
here is the code:
<OBJECT id="Audio"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject"
width="144" height="50">
<PARAM NAME="URL" VALUE="music/Beethoven's Symphony No. 9 (Scherzo).wma">
<PARAM NAME="enabled" VALUE="True">
<PARAM NAME="AutoStart" VALUE="False">
<PARAM name="PlayCount" value="3">
<PARAM name="Volume" value="50">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="Rate" VALUE="1.0">
<PARAM NAME="Mute" VALUE="False">
<PARAM NAME="fullScreen" VALUE="False">
<PARAM name="uiMode" value="full">
</OBJECT>
WMA files aren't the most widely used/supported of files, so many of your end users would run into the same problems you're having.
A few options:
You might consider using a video service like youtube - upload it to youtube, and then cut and paste the "embed" code from them.
Even better, you could use a trial of an HTML5 video converting software, and code in an HTML5 solution.
Here is a link about inserting videos, with a section called "The Best HTML Solution" about half way down the page.
http://www.w3schools.com/html/html_videos.asp

IE6 - show swf animation

IE6 don`t show animation:
<object width="456" height="315">
<param name="movie" value="animacija.swf">
<param name="wmode" value="transparent" />
<embed src="animacija.swf" width="456" height="315">
</embed>
</object>
"Your security settings do not allow websites to use ActiveX controls installed on your computer."
Other animation show normaly on other websites.
Are you running your HTML-file locally? That can be a problem. Try uploading the HTML & swf-file to the web and check if the problem still occcurs.

html: embed streaming video (crossbrowser)

i'm trying to embed a .wmv video into my website but doesnt work :(
i've googled and tried <embed> and <video>
the video i'm using was created by super converter and i've used WMV7 as video codec.
is there a crossbrowser solution for it - or should i better use flash video?
thx in advance
The <video> tag is specific to HTML5, and is very browser dependent. If you care about everyone seeing the video you should not be using this tag yet--wait a few years.
As for why the embed is not working, you'll have to show us code to see what is wrong. Here is an example snippet that should work.
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videofilename.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="videofilename.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
With any HTML questions, you should tell us what browser and OS you are using. Again, source code is very important to diagnosing problems.