Need help in inserting audio using <object>

This is a discussion on "Need help in inserting audio using <object>" within the Flash & Multimedia Forum section. This forum, and the thread "Need help in inserting audio using <object> are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 24th, 2007, 13:50
Junior Member
Join Date: Sep 2007
Location: sri Lanka
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Need help in inserting audio using <object>

Hi!

Earlier i used <embed> to insert audio in my website but i got to know that it is not a valid html 4.01 tag. So, i need to know the coding to use the <object> tag instead.
I need this information because i have to write a report on it..for my assignment. They want us to validate our website & correct the errors & to provide reasons for it.

So, it's a great help if u could provide me with the coding to use for this..I found out the coding for inserting videos that is only for .wmv files. It doesn't work for .mpg or anything else...I'm not sure if its 100% correct but it is working.....
well this is the coding that i found out...

<object type="video/x-ms-wmv" data="videos/v5.wmv" width="500" height="400">
<param name="src" value="videos/v5.wmv" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
</object>

I only need the coding for the audios....

Thanks

Regards,
Shevorne
Reply With Quote

  #2 (permalink)  
Old Sep 28th, 2007, 05:50
Junior Member
Join Date: Sep 2007
Location: sri Lanka
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Re: Need help in inserting audio using <object>

Hey can somebody PLEASE help me out on this problem???? ?
Reply With Quote
  #3 (permalink)  
Old Sep 28th, 2007, 15:39
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Need help in inserting audio using <object>

<embed src="../assets/devx/8990.mid" autostart=true loop=false height=62 width=144 controls="console">
  • The "embed src=" portion of the code refers to the location of our sound file.
  • The "autostart=true" command tells the browser to start playing the sound file immediately.
  • The loop=false command tells the browser to only play the file once.
  • The rest of the code refers to the audio console. The "CONTROLS="console" tells the browser to display an audio console, and the rest of the code defines the height and width of the console.
Edit: I'm not sure of any other way, honestly...
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; Sep 28th, 2007 at 19:21.
Reply With Quote
  #4 (permalink)  
Old Sep 29th, 2007, 01:24
Junior Member
Join Date: Sep 2007
Location: sri Lanka
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need help in inserting audio using <object>

I already used the <embed> tag for insertin audio & video but when i validate the site by(validator.w3.org) they say that the embed tag is depricated & cannot be used in HTML4.01. So as a solution for this i thought of using the <boject>. I used it for inserting video but im not sure how to use for inserting Audios...

PLease HELP me if u can..!!!!
Reply With Quote
  #5 (permalink)  
Old Sep 29th, 2007, 10:42
Junior Member
Join Date: Sep 2007
Location: sri Lanka
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Multiple web browsers

I want to know how to make the <object> tag work in opera. Cos i used it to insert audio/video & flash to my website & it works properly only in Windows Explorer
Reply With Quote
  #6 (permalink)  
Old Sep 29th, 2007, 10:55
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Multiple web browsers

Quote:
Originally Posted by shevorne View Post
I want to know how to make the <object> tag work in opera. Cos i used it to insert audio/video & flash to my website & it works properly only in Windows Explorer
I did something like what you want for somebody else on the forum and I used this as it validated

HTML: Select all
<object data="playlist.m3u" width="300" height="45">
 <param name="autostart" value="flase" />
 <param name="autoplay" value="false" />
</object>
I'm sure there are other paramters you can use
Reply With Quote
  #7 (permalink)  
Old Sep 29th, 2007, 11:06
Junior Member
Join Date: Sep 2007
Location: sri Lanka
Age: 21
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Multiple web browsers

Hey! THANKX alot..its working in opera as welll...i think the problem was that i included
"<object type="....bla ..bla...." data=....>"
i think the "type" part was the thing that caused the problem...

Thanks again...Bye!
Reply With Quote
  #8 (permalink)  
Old Sep 29th, 2007, 12:14
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Need help in inserting audio using <object>

google:
http://perishablepress.com/press/200...he-object-tag/
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #9 (permalink)  
Old Sep 29th, 2007, 13:39
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need help in inserting audio using <object>

shevorne: Please do-not hi-jack other members' threads! I have been VERY patient with your so far. Stick with one thread!
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting time phiero21 JavaScript Forum 1 May 2nd, 2008 20:09
Inserting a XML variable in to a getURL dangergeek Flash & Multimedia Forum 1 Nov 14th, 2007 09:21
Adjusting/Synching Audio for Audio and Video Clips junestag Flash & Multimedia Forum 3 Sep 19th, 2006 02:43
help me with inserting images on webpage... renren Web Page Design 7 Jan 24th, 2006 12:32
inserting data to mysql db Tim356 PHP Forum 1 May 6th, 2005 04:20


All times are GMT. The time now is 20:07.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43