Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Windows Media Player component

Windows Media Player component

Scheduled Pinned Locked Moved C#
comhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    methodincharge
    wrote on last edited by
    #1

    I have been fooling around with the Windows Media Player COM component. What I am trying to do is have the playlist be tied to a listbox from which they can add/remove and play songs. The problem I am having is that I cannot find a way to change the internal playlist selection in the Windows Media Player component. If I simply set currentMedia, then the internal playlist disappears. Anyone know a solution?

    C M 2 Replies Last reply
    0
    • M methodincharge

      I have been fooling around with the Windows Media Player COM component. What I am trying to do is have the playlist be tied to a listbox from which they can add/remove and play songs. The problem I am having is that I cannot find a way to change the internal playlist selection in the Windows Media Player component. If I simply set currentMedia, then the internal playlist disappears. Anyone know a solution?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I had success maintaining my own playlist, and catching the events to tell me when to play the next file. I had no success building playlists in WMP. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • M methodincharge

        I have been fooling around with the Windows Media Player COM component. What I am trying to do is have the playlist be tied to a listbox from which they can add/remove and play songs. The problem I am having is that I cannot find a way to change the internal playlist selection in the Windows Media Player component. If I simply set currentMedia, then the internal playlist disappears. Anyone know a solution?

        M Offline
        M Offline
        methodincharge
        wrote on last edited by
        #3

        I have worked around the WMP playlist but, as suggested above, maintaining the events externally. I places buttons on top of the WMP control to simulate the Next and Prev buttons (viz. screenshot, extract, overlay). If anyone is interested in the code I'd be happy to share. I have the next/prev working as well as auto-playing the next file in the playlist. Going to be working on randomizing playback soon.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups