Embed audioplayer in a webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaleel
    New Member
    • Sep 2007
    • 38

    Embed audioplayer in a webpage

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

    Code:
    <OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=42   
    CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"  
    STANDBY="Loading Windows Media Player components..."    
    TYPE="application/x-oleobject">   
    <PARAM NAME="FileName" VALUE="C:\myfile\jennifer.mp3">   
    <EMBED TYPE="application/x-mplayer2"    
    SRC="C:\myfile\jennifer.mp3"  
    pluginspage="http://www.microsoft.com/Windows/MediaPlayer/   
    NAME="MediaPlayer"  
    AUTOPLAY="false"  
    uiMode="mini"  
    WIDTH=300   
    HEIGHT=42>   
    </EMBED>   
    </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
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Code:
    <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.

    Comment

    • jaleel
      New Member
      • Sep 2007
      • 38

      #3
      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

      Comment

      • jaleel
        New Member
        • Sep 2007
        • 38

        #4
        I made it working finally :)

        Code:
         <object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
        codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
          width="320" height="42" >
         <param name="url" value="jennifer.mp3">
         <param name="controller" value="true">
         <param name "bgcolor" value="FED100" />
         <param name='allowscriptaccess' value='always'>
         <PARAM name="SendPlayStateChangeEvents" value="True">
         <embed type="application/x-mplayer2" 
          pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
           src="jennifer.mp3"
           showcontrols="True" showstatusbar="true"
           bgcolor="#FED100"
           width="320" height="42"
           allowscriptaccess='always' >
         </embed>
        </object>
        Last edited by Frinavale; Apr 23 '10, 07:34 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          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

          Comment

          Working...