...

View Full Version : Custom wmp controls



skatermike21988
12-30-2006, 10:35 AM
Hi i am trying to make custom windows media player controls, i have googled and all results are the same, when i try these i recieve: object doesn't support this method


here is my code:



<script>
function pause() {
document.MediaPlayer1.pause();
}
</script>

<a href='#' onclick='pause()'>Pause</a>

<OBJECT ID='MediaPlayer1' width='0' height='0'
classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'
type='application/x-oleobject'>
<param name='URL' value=''>
<param name='AutoStart' VALUE='True'>
<param name='uiMode' value='full'>
<PARAM NAME='showControls' VALUE='false'>
<embed type='application/x-mplayer2'
src='' id='music' name='MediaPlayer1'>

</embed>
</object>


Doing this is the way every forum/tutorial has told me. Why am i getting errors?
Please Help. Thanks

skatermike21988
12-30-2006, 12:04 PM
See, "Adding Scripting" section:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/addwmwebpage.asp

didn't help any, i tried that and i still get errors, with that i get that Player is undefined

skatermike21988
12-30-2006, 12:07 PM
nm, i'm dumb, i got it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum