VB2005 WMP & Auto playlist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swatmajor1
    New Member
    • Oct 2006
    • 40

    VB2005 WMP & Auto playlist

    Hi there,

    I have made a media player with play list capabilities, and i wish to make it so that it automatically loads the next song in the play list and loads the first song in a play list file when it is opened.

    The Vb 2005 source code can be found at www.swatmajor1. co.nr
    Programming Projects>Swatma jor1's Media Player

    Any help with this is appreciated.

    Signing off,

    Swatmajor1
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by swatmajor1
    I have made a media player with play list capabilities, and i wish to make it so that it automatically loads the next song in the play list and loads the first song in a play list file when it is opened.
    For those of us short on time (or motivation :)) could you provide some further detail on which part(s) you require help with?

    Comment

    • swatmajor1
      New Member
      • Oct 2006
      • 40

      #3
      Originally posted by Killer42
      For those of us short on time (or motivation :)) could you provide some further detail on which part(s) you require help with?
      Hi there,

      Sorry for the late reply, I have been on holidays for the last week or so.

      Now to business. As known, my media player uses the Windows Media control to play files (eg mp3, etc.) and has a play list feature which uses a listbox.

      What I want to happen is so that when the media finishes playing (reaches the end), the next item in the listbox loads and plays in the media control.

      I know how to switch to the next item in the listbox, but do not know to make happen when the media file ends.

      I hope this clarifies everything, and as always any help is appreciated. (Need to change this line)

      Signing off,

      Swatmajor1

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by swatmajor1
        ...I hope this clarifies everything...
        It sure does.

        I've never used the wmp control. But having a look at it now, my guess is that you'd need to use one of these events...
        • EndOfStream
        • MarkerHit
        • MediaChange
        • ModeChange
        • OpenStateChange
        • PlayStateChange
        • StatusChange
        • Warning

        It shouldn't be difficult to check out when each event fires, and build on that.

        (Note that I'm talking from a VB6 viewpoint, and make allowances as appropriate).

        Comment

        • swatmajor1
          New Member
          • Oct 2006
          • 40

          #5
          Originally posted by Killer42
          It sure does.

          I've never used the wmp control. But having a look at it now, my guess is that you'd need to use one of these events...
          • EndOfStream
          • MarkerHit
          • MediaChange
          • ModeChange
          • OpenStateChange
          • PlayStateChange
          • StatusChange
          • Warning
          It shouldn't be difficult to check out when each event fires, and build on that.

          (Note that I'm talking from a VB6 viewpoint, and make allowances as appropriate).
          Hi there,


          After a few days of tinkering, the EndOfStream option you gave me did the trick. As always, your help is greatly appreciated, and I hope you try out the finish product, which would never have gotten to this level without your help.


          Signing off,

          Swatmajor1

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by swatmajor1
            After a few days of tinkering, the EndOfStream option you gave me did the trick. As always, your help is greatly appreciated, and I hope you try out the finish product, which would never have gotten to this level without your help.
            I'll certainly have a look, if I can find the time (I'm back at work now, and generally can't download things here).

            Anyway, I'm glad we were able to help out.

            Comment

            Working...