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.
Related
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.
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>
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.
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.
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!