Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » need help with sound


need help with sound

Reply
  #1 (permalink)  
Old 03-15-10, 12:31 AM
mozart66 mozart66 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
need help with sound

Hi!

I have used the following <object> tag in my HTML file but it not playing the sound.

Code:
<OBJECT ID="MediaPlayer" WIDTH="240" HEIGHT="68" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videos/raga_maru_bihag.mp3">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="false">
<param name="Volume" value="-300">
<EMBED TYPE="application/x-mplayer2" SRC="videos/raga_maru_bihag.mp3" NAME="MediaPlayer"
WIDTH="240" HEIGHT="68" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" autostart="false"> </EMBED>
</OBJECT>
What is possibly wrong with this? How can I make the sound play in ALL browsers? The above <object? tag is not playing properly even in any version of Internet Explorer. Please help.

Thank you in advance.

Mozart66

Last edited by digioz; 03-28-10 at 09:11 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-15-10, 09:41 AM
CodeRobber's Avatar
CodeRobber CodeRobber is offline
Newbie Coder
 
Join Date: Feb 2010
Location: Leicestershire UK
Posts: 19
Thanks: 0
Thanked 2 Times in 2 Posts
Have you checked the

<param name="Volume" value="-300">

would the minus300 mean that its mute?

Check that out first i think.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-16-10, 04:35 AM
mozart66 mozart66 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Hi!

I checked it. It is now playing all right in Internet Explorer, all versions! It is also showing the "Buffering..." message if the download is slow. The problem now is in Mozilla Firefox Version 3 and Google Chrome. The sound or any audio-visual for that matter is not playing correctly using <object> tag in my HTML. Mind you, I have used Microsft WIndows Media Player as the default player for all the audio-visual files to be played on the website. I guess that may be the problem with Mozilla Firefox and / or Google Chrome. Can you please tell me how to solve this cross-platform issue for audio and audio-visuals to be played on a website? Need this help rather urgently.

Thank you in advance! Any help will be greatly appreciated!

Mozart66
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-16-10, 07:10 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Check to ensure the file is accessible.

Type the URL in the address bar of the browser.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 03-25-10, 12:05 AM
dayworker dayworker is offline
Newbie Coder
 
Join Date: Feb 2010
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
couple of years ago

I got stuck on this a couple of years ago. I don't know if this will help, but here's what I ended up with:

<embed src='xyz.mp3' name='MediaPlayer1' width='75' height='25' loop = 'false' autostart='true' showcontrols='1' controller = 'true' volume='300'></embed>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 03-25-10, 03:11 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 03-26-10, 08:20 AM
mozart66 mozart66 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Hi!

I tried using your trick but it works fine now in Mozilla and Google chrome but does not work in Internet Explorer!! This is my chronic problem! The sound autostart = "false" works well in IE but the same does not work in Google Chrome and it doesn't work at all in Mozilla!!!

Help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 03-26-10, 10:15 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Sometimes you need to send different HTML to different browsers. You can use server or client-side logic to adapt.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 03-29-10, 01:03 AM
mozart66 mozart66 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Hi!

How can I write a nested <object> tag code for different browsers? Please help. This nesting of <object> tag may help me solve my problem!

Please help.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 03-29-10, 04:34 AM
CodeRobber's Avatar
CodeRobber CodeRobber is offline
Newbie Coder
 
Join Date: Feb 2010
Location: Leicestershire UK
Posts: 19
Thanks: 0
Thanked 2 Times in 2 Posts
Hi there,

Here's an example of a nested object embed with the conditions for IE.

Hope this helps!
HTML Code:
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="642" height="275">
  <param name="movie" value="../flash/about.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="9.0.45.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="/flash/about.swf" width="642" height="275">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="9.0.45.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
__________________
Web Design - SEO - Ecommerce Website Design

Last edited by wirehopper; 03-29-10 at 07:21 AM. Reason: HTML tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I determine if a sound is playing? [AS3] jaxz Flash & ActionScript 0 04-01-09 07:26 AM
Java Sound Help Plz mmc Everything Java 1 11-15-06 05:07 PM
Suppress Sound in IE when a new Page Loads immortal_king JavaScript 3 10-11-06 09:04 PM
Play a sound on button click magicadmin JavaScript 0 08-31-06 06:54 AM
FPS in SoCal – Software Engineer (Sound) DigitalMedia Job Offers & Assistance 0 03-22-06 08:19 PM


All times are GMT -5. The time now is 09:10 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.