SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Temecula, CA
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Windows Media Controls

    I have code that instantiates a Windows Media object. Now I need to change the thing from time to time. I've tried this:
    HTML Code:
    	<object id="mediaPlayer"
      	width="400"
      	height="364"
      	classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
      	codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
      	standby="Loading Microsoft Windows Media Player components..."
      	type="application/x-oleobject">
      	<param name="FileName" value="http://www.DomainName/Alientame/Curacion.mp3"/>
      	<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
      	<PARAM NAME="AutoStart" VALUE="True">
      	<PARAM NAME="uiMode" value="mini">
      	<PARAM NAME="ShowStatusBar" value="1">
      	<PARAM NAME="PlayCount" value="1">
      	<PARAM NAME="ShowTracker" value="False">
      	<PARAM NAME="stretchToFit" value="1">
      	<PARAM NAME="enableContextMenu" value="False">
      	<embed type="application/x-mplayer2" 
      	src="http://www.DomainName/Alientame/Curacion.mp3" 
      	id="mediaPlayer" 
      	ShowStatusBar="1" 
      	width="400" 
      	height="364" 
      	showtracker="False" 
      	autostart="True" 
      	sendplaystatechangeevents="True" 
      	uimode="mini" 
      	playcount="1" 
      	stretchToFit="1" 
      	enablecontextmenu="False"></embed> 
      	</OBJECT> 
      
    In conjunction with this:
    HTML Code:
    document.getElementById("mediaPlayer").src = "C:\FileName.mp3"
    And this:
    HTML Code:
    document.getElementById("mediaPlayer").FileName = "C:\FileName.mp3"
    But I always get a c00d1327 error.

    Anyone have any idea what I'm doing wrong here?
    (BTW: the "C:\FileName.mp3" is one that I know works. It plays fine when I start out with it. It dies regardless of what file I point it at.)

  2. #2
    doRighteousDeeds++
    Join Date
    Aug 2006
    Location
    تركيا Turkey Türkiye
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •