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

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.

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>

Flash security pop up (how to get it?)

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)

<video> tag in Sharepoint 2007

I am trying to add a video tag to a Sharepoint 2007 website with no success.
I created a new Content Editor webpart and injected this code:
http://pastebin.ca/2076724
<video id="movie" width="320" height="240" preload controls>
<source src="/videos/test.ogv" type='video/ogg; codecs="theora, vorbis"' />
<object id="MediaPlayer" width="320" height="240" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Windows Media Player components..." type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://www.domain.com/videos/test.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="http://www.domain.com/videos/test.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"></EMBED>
</OBJECT>
</video>
The controls are loaded, the video is found when doing Save Video (so no broken link), but the video does not play.
What I did is do Save Page As to my local disk, and tada: It works.
I fiddled with the code several times. I noticed that Sharepoint does alter the code a bit but the same code works when locally so..
I also do not have the HTML5 doctype in my website. (neither locally).
Ideas?
What MIME type is Sharepoint serving the video as? It should be video/ogg, here's a Technet article on how to configure MIME types in IIS6.

Resources