Flash security pop up (how to get it?) - security

I wrote a flash script that is embedded into an HTML page. The flash script (AS3), needs access to the users microphone and camera. I've seen on other websites when they want to use my camera/ microphone flash automatically pops up a box asking the user to permit.
In my case, even though in my global settings for my webpage it says "always ask" under permissions, flash doesn't ask me anything and just blocks the script from accessing the microphone. The script loads fine, just doesn't prompt for access and the user has to manually right click, and go to settings and put setting to "allow".
Searching for this topic on Google is rather difficult as there is too much irrelevant stuff with the same keywords. Thanks for your time.
Edit: This is how I embed just in case I'm not doing it right.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="200" height="20" id="myflash" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="/baseDir/myflash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name=base VALUE="/baseDir/">
<embed src="/baseDir/myflash.swf" base="/baseDir/" quality="high" bgcolor="#ffffff" width="200" height="20" name="myflash" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />

You can fix this by making your SWF's dimensions larger. Your embedded SWF must be at least so big for the security dialog to show up:
Important: Flash Player displays a
Privacy dialog box that lets the user
choose whether to allow or deny access
to the camera. Make sure your
application window size is at least
215 x 138 pixels; this is the minimum
size required to display the dialog
box.
via livedocs

is your swf at least 215 x 138 in size (minimum size to display the privacy box)?
is it an air app (in which case it doesn't show up)?
have you already given this permission? (i don't know if flash holds the previous choice or not - try clearing out your local shared objects and try again)
are you running this locally (in which case, if your folder is set to be always trusted - http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html, it won't ask)

Related

Embed a video object in html

I have this assignement where I have to used export for web in quicktime pro 7. Then copy/paste the read me.html file into the body (exactly as it is), which I did.
However, I keep getting 3 errors when I run my .html through W3C and cannot figure out how to correct it.
I realized there are probably better way to embed object but this is how they want us to do it for this assignment. Can anyone help me correct these 3 errors please.
Many thanks in advance.
<object width="350" height="278">
<param name="src" value="swiss/swiss-poster.jpg" />
<param name="href" value="swiss/swiss.mov" />
<param name="target" value="myself" />
<param name="controller" value="false" />
<param name="autoplay" value="false" />
<param name="scale" value="aspect" />
<embed width="350" height="278" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"
src="swiss/swiss-poster.jpg"
href="swiss/swiss.mov"
target="myself"
controller="false"
autoplay="false"
scale="aspect">
</embed>
</object>
Line 1 : Element object is missing one or more of the following attributes: data, type.
Line 14: Attribute href not allowed on element embed at this point.
scale="aspect">
Line 15: Stray end tag embed.
I just needed to embed a quicktime movie myself, and I looked to the Mozilla Developer Network for the syntax: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object
I believe that the data attribute would take the place of href in your params:
param name="href" value="swiss/swiss.mov" />
would be:
<param name="data" value="swiss/swiss.mov" />
and the type in this case would be "video/quicktime":
<param name="type" value="video/quicktime" />
There is also an <embed> reference at MDN (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed), but it covers only the HTML5 version of the element, which doesn't require a closing </embed> tag.
The reference at sitepoint (http://reference.sitepoint.com/html/embed) addresses the earlier syntax, and also says:
"embed isn’t part of any currently recognized standard (it is included in HTML5 which is not yet finalized), so if you use it, your page can’t possibly validate".
That suggests that with <embed> you should probably focus more on actual behavior in the browser than the W3C's validation tool.

audio player just in a home page

I'm triyng to use your audio player just in the home page of this site:
http://www.piscinafrancavilla.com/wordpress/
the home page is with super size... I need to put the audio with autoplay... I know that i should edit the header.php and put the condition
<?php if(is_home()) {?>
for use your plugin what is the rest of the script?
Do you think that is the right way???
Please help me
Best regards
Eric
Use embed tag on your homepage as
<object width="199" height="59">
<param name="src"
value="song.mp3">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="bgcolor" value="#333333">
<embed TYPE="application/x-mlayer2"
src="song.mp3" autostart="true"
loop="false" width="199" height="59" controller="true"
bgcolor="#333333"></embed>
</object>
Just change the src values (there are two) to the absolute URL of the music file you are wanting to insert.

How to include flash banner on all pages in Drupal

I am hoping to include header banner on my Drupal website. I used the following code but it appear blank on all but one page.
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash
/swflash.cab#version=7,0,19,0" width="786" height="147">
<param name="movie" value="pmi.swf" />
<param name="quality" value="high" />
<embed src="pmi.swf" quality="high" pluginspage="http://www.macromedia.com
/go/getflashplayer" type="application/x-shockwave-flash" width="786" height="147"> </embed>
How can I resolve this?
As i see on embed tag you are saving the swf file in the root right?(www.example.com/banner.swf). But you should not put files outside the files path(usually sites/all/files/). Then with the file in the right place you can use "file_directory_path()" function to get the complete url path for the flash. Something like:
<embed src="<?=file_directory_path()?>/pmi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="786" height="147"> </embed>

How do I get the background of flash player to be transparent

I dont know much about how the flash object works , but I am embedding a video in Dreamweaver ,and there is a white background on the background.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="240" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
Set the wmode property to transparent.
However, be sure to test it. From Adobe Support:
Not every web browser handles transparency in the same way. Be sure to test your SWF file in all browsers that you want to enable your audience to use. Most Linux browsers do not support Flash transparency. This table lists several browsers that support transparency.

How can I embed windows media player without the visualizations

I enjoyed the late 90s just as much as the last guy, but I'd like to be able to play an audio file on a web page without having to look at the cheesy geometric visualizations that wmp shows. Is there a good way of doing this? Here's my code:
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="file.wav" />
<param name="autoStart" value="True" />
<embed type="application/x-mplayer2" src="file.wav" name="MediaPlayer">
</embed>
</object>
One temporary solution I've found is to set the height parameter to 45, which ends up showing just the controls at the bottom. As soon as Microsoft decides to change their layout though, this won't look right. Argh!

Resources