473,473 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Embed audioplayer in a webpage

38 New Member
I was trying to embed an audio player in one of my web pages (aspx). I used following code..

Expand|Select|Wrap|Line Numbers
  1. <OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=42   
  2. CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"  
  3. STANDBY="Loading Windows Media Player components..."    
  4. TYPE="application/x-oleobject">   
  5. <PARAM NAME="FileName" VALUE="C:\myfile\jennifer.mp3">   
  6. <EMBED TYPE="application/x-mplayer2"    
  7. SRC="C:\myfile\jennifer.mp3"  
  8. pluginspage="http://www.microsoft.com/Windows/MediaPlayer/   
  9. NAME="MediaPlayer"  
  10. AUTOPLAY="false"  
  11. uiMode="mini"  
  12. WIDTH=300   
  13. HEIGHT=42>   
  14. </EMBED>   
  15. </OBJECT>   
this works perfect in IE and Mozilla firefox . But not in Chrome. I have Chrome 4.1.249.... version.


Can anybody help me...?

regards,
Jaleel
Apr 22 '10 #1
4 4665
tlhintoq
3,525 Recognized Expert Specialist
Expand|Select|Wrap|Line Numbers
  1. <PARAM NAME="FileName" VALUE="C:\myfile\jennifer.mp3"> 
I'm out of my element, so I'm asking for my own education:
This can only work on the server, right? It won't work across a network since the client viewing the site doesn't have that MP3 on their C: drive - Assuming they even have a C: drive.
Apr 22 '10 #2
jaleel
38 New Member
That is just a sample MP3 file to test the application in my local machine . The MP3 file will be always in the server where the website is hosted...and we will give that link in the Value field
Apr 22 '10 #3
jaleel
38 New Member
I made it working finally :)

Expand|Select|Wrap|Line Numbers
  1.  <object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
  2. codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
  3.   width="320" height="42" >
  4.  <param name="url" value="jennifer.mp3">
  5.  <param name="controller" value="true">
  6.  <param name "bgcolor" value="FED100" />
  7.  <param name='allowscriptaccess' value='always'>
  8.  <PARAM name="SendPlayStateChangeEvents" value="True">
  9.  <embed type="application/x-mplayer2" 
  10.   pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
  11.    src="jennifer.mp3"
  12.    showcontrols="True" showstatusbar="true"
  13.    bgcolor="#FED100"
  14.    width="320" height="42"
  15.    allowscriptaccess='always' >
  16.  </embed>
  17. </object>
Apr 23 '10 #4
Frinavale
9,735 Recognized Expert Moderator Expert
I'm glad you found a solution to your problem.
Thanks for sharing it with us :)
I'm sure it will be very helpful to other people facing the same problem.


-Frinny
Apr 23 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Robert Ferber | last post by:
Hi, I'm a PHP-programmer who evaluates Python for a new project. I really like a lot of concepts of Python, especially the shell, but there is one great feature of PHP which I don't know how to...
11
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after...
8
by: jalexa9898 | last post by:
I am asking because I wrote some flex that was put in xml and I want to embed it in some html is this hard to do?
1
by: james | last post by:
Hi Guys, Does anyone know how I could embed IE7 in a Windows Form, with the Address Bar, Tabs and navigation buttons? At my work we have a kiosk application that needs a web browser. We...
14
by: jim | last post by:
OK...Don't ask why - it'll just make ya mad. It makes me mad just thinking about it. I swear....if I didn't need this job, I'd tell 'em where to embed their webbrowser control. But, since I do...
0
by: sololaura | last post by:
Hello this is The Latin Explosion I have a webpage at latinexplosion.com which is sustained by Network solutions. I am a latin american live band and want to embed a player on my website. I have...
10
by: Php Developer | last post by:
Hi, please help me i want to embed font in a webpage.I like it to show in IE as well as in FF..Is there any technique for that.Thanks a lot.
4
by: NitinSawant | last post by:
I'm trying to embed external webpage in my website using JEditorPane, i wrote following code: /* || JAI BHAVANI || Author: Nitin Sawant, nitin.jaysing@gmail.com Title: Embed web...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.