Automating Windows Media Player
-
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
-
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
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
-
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
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
-
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
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 -
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 StringerHey, thank you very much. I'm not sure how i managed to miss that section lol. I really Appreciate your time and help.