Windows Media COM component help?

Discussion in 'Programming General' started by rattytatt50, Oct 3, 2008.

Windows Media COM component help?
  1. Unread #1 - Oct 3, 2008 at 1:47 PM
  2. rattytatt50
    Joined:
    Oct 26, 2007
    Posts:
    67
    Referrals:
    0
    Sythe Gold:
    0

    rattytatt50 Member

    Windows Media COM component help?

    Right what im doing is making a radio that connects to an internet radio station

    Anyhoo, if i placed in a button saying "Stop", how would i make windows media player stop?

    I have tried this
    Code:
        Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStop.Click
            wmp.playState = WMPLib.WMPPlayState.wmppsStopped
        End Sub
    
    It returns an error saying that wmp.playState is readonly

    I have also tried this
    Code:
    wmp.playState.wmppsStopped()
    
    Which then vs tries to correct me to
    Code:
    WMPLib.WMPPlayState.wmppsStopped()
    
    Which also doesnt work, can somebody please help...


    EDIT::

    figured it out

    had a little play around and used this
    Code:
        Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStop.Click
            wmp.Ctlcontrols.stop()
        End Sub
    
    hope it helps to others.
     
< your forgetting!!!!! | Keypresses.... >

Users viewing this thread
1 guest


 
 
Adblock breaks this site