Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom wmp controls

    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:

    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

  • #2
    New Coder
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Ancora View Post
    didn't help any, i tried that and i still get errors, with that i get that Player is undefined

  • #3
    New Coder
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nm, i'm dumb, i got it.


  •  

    Posting Permissions

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