how to Disable play during buffering

ICW

Active member
Joined
Mar 27, 2006
Messages
25
Programming Experience
Beginner
Hi All

Can anyone tell me the setting to make my windows media control wait while it buffers.
Thanks
PHP:
Private Sub AxWindowsMediaPlayer1_Buffering(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_BufferingEvent) Handles AxWindowsMediaPlayer1.Buffering
 ' Here disable WMP play during Buffering 
End Sub
 
I would suggest adding extra buttons for every playing state ..play, stop, pause etc.
Then just disable the play button.

VB.NET:
If Me.AxWindowsMediaPlayer1.playState = MPLib.WMPPlayState.wmppsBuffering Then
     btnPlay.Enabled = False
End If

if you follow this approach you should take care about the uiMode

VB.NET:
AxWindowsMediaPlayer1.uiMode = "None"

Hope this helps :)
 
Back
Top