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. Visual Basic
  4. Automating Windows Media Player

Automating Windows Media Player

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
5 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.
  • J Offline
    J Offline
    jamesbronw
    wrote on last edited by
    #1

    Hi, I am trying to get Windows media player to play when a certin condition in my program happens. I have a playlist that i would like it to play. Does anyone know how to code this so it gets my playlist then starts playing when these conditions are met? So far the only thing i can do is do auto play but i dont want it to start playing as soon as the program starts. Please any help would be greatly appreciated. P.S. Please feel free to email me answers at iamydd@bellsouth.net Thanks in advanced

    C 1 Reply Last reply
    0
    • J jamesbronw

      Hi, I am trying to get Windows media player to play when a certin condition in my program happens. I have a playlist that i would like it to play. Does anyone know how to code this so it gets my playlist then starts playing when these conditions are met? So far the only thing i can do is do auto play but i dont want it to start playing as soon as the program starts. Please any help would be greatly appreciated. P.S. Please feel free to email me answers at iamydd@bellsouth.net Thanks in advanced

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

      Turn off the autoplay option, and then call the play method, which I think is on the controls property. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

      J 1 Reply Last reply
      0
      • C Christian Graus

        Turn off the autoplay option, and then call the play method, which I think is on the controls property. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

        J Offline
        J Offline
        jamesbronw
        wrote on last edited by
        #3

        You wouldnt happen to know what it is called once inside the controls property would you? Because I can't seem to find one that will work. If anyone knows where i could find out how to do this or if you know how to do this please let me know. Again, Thanks

        C 1 Reply Last reply
        0
        • J jamesbronw

          You wouldnt happen to know what it is called once inside the controls property would you? Because I can't seem to find one that will work. If anyone knows where i could find out how to do this or if you know how to do this please let me know. Again, Thanks

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

          Here's my code: mainMedia = mainPlayer.newMedia(info.FilePath); mainPlayer.stretchToFit = true; mainPlayer.settings.autoStart = false; mainPlayer.currentMedia = mainMedia; mainPlayer.settings.volume = RegistryFacade.PlayerOptions.TrackVolume; mainPlayer.BringToFront(); mainPlayer.Ctlcontrols.play(); Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

          J 1 Reply Last reply
          0
          • C Christian Graus

            Here's my code: mainMedia = mainPlayer.newMedia(info.FilePath); mainPlayer.stretchToFit = true; mainPlayer.settings.autoStart = false; mainPlayer.currentMedia = mainMedia; mainPlayer.settings.volume = RegistryFacade.PlayerOptions.TrackVolume; mainPlayer.BringToFront(); mainPlayer.Ctlcontrols.play(); Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

            J Offline
            J Offline
            jamesbronw
            wrote on last edited by
            #5

            Hey, thank you very much. I'm not sure how i managed to miss that section lol. I really Appreciate your time and help.

            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