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