Results 1 to 4 of 4

Thread: Windows Media Player 9 problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Location
    New Zealand
    Posts
    3

    Angry Windows Media Player 9 problem

    I trying to get WMP 9 to fire it's EndOfStream event and then play another video but it will not fire. Anyone please help!

    Here is my code:

    Private Sub Form_Load()
    WindowsMediaPlayer1.URL = "e:\mpegav\avseq09.dat"
    End Sub

    Private Sub WindowsMediaPlayer1_EndOfStream(ByVal Result As Long)
    WindowsMediaPlayer1.URL = "e:\mpegav\avseq10.dat"
    End Sub

  2. #2
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    A workaround: you could try monitoring the length played and see if it equals the total time...

    Never needed to use WMP in a program, so I'm not sure what might cause it (you could always google it)
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  3. #3
    New Member
    Join Date
    Oct 2003
    Posts
    1
    Use it on click event or something

    If WindowsMediaPlayer1.playstate = wmppstopped then

    WindowsMediaPlayer1.URL="e:\mpegav\avseq10.dat"
    WindowsMediaPlayer.Controls.Play

    End If

  4. #4
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    The windows media player 9 control is the worst thing ever. Very few events fire when they should and its the biggest bodge job on the planet.

    You have to monitor the stream length until it reaches the end and then trigger the net one. Your best bet is not to use WMP 9 and go back one level to 7 (or 8 operating system dependant)

    7 and 8 should run WMP9 files i beleive given the right decoding updates

    Good Luck

    P.s I wouldnt recommend you trust any events fired unless you really have to
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

Posting Permissions

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



Click Here to Expand Forum to Full Width