F
flash101
Unregistered / Unconfirmed
GUEST, unregistred user!
我要用wmp9的ocx控减嵌入我的应用程序里面,但要求一显示出这个ocx控件就马上播放,但实际上总是先要显示黑
屏然后过几秒才能开始播放。我想通过后台调用然后取状态得到是否可以播放了在显示这个控件,但好像没有这样一个
状态值。不知道有没有别的办法。
已知的全部状态如下:
Select Case WindowsMediaPlayer1.playState
Case 0: MsgBox "Undefined"
Case 1: MsgBox "Stopped"
Case 2: MsgBox "Paused"
Case 3: MsgBox "Playing"
Case 4: MsgBox "ScanForward"
'Avance rapide
Case 5: MsgBox "ScanReverse"
'Retour rapide
Case 6: MsgBox "Buffering"
Case 7: MsgBox "Waiting"
Case 8: MsgBox "MediaEnded"
Case 9: MsgBox "Transitioning"
'Préparation nouvelle séquence
Case 10: MsgBox "Ready"
Case 11: MsgBox "Reconnecting"
End Select
屏然后过几秒才能开始播放。我想通过后台调用然后取状态得到是否可以播放了在显示这个控件,但好像没有这样一个
状态值。不知道有没有别的办法。
已知的全部状态如下:
Select Case WindowsMediaPlayer1.playState
Case 0: MsgBox "Undefined"
Case 1: MsgBox "Stopped"
Case 2: MsgBox "Paused"
Case 3: MsgBox "Playing"
Case 4: MsgBox "ScanForward"
'Avance rapide
Case 5: MsgBox "ScanReverse"
'Retour rapide
Case 6: MsgBox "Buffering"
Case 7: MsgBox "Waiting"
Case 8: MsgBox "MediaEnded"
Case 9: MsgBox "Transitioning"
'Préparation nouvelle séquence
Case 10: MsgBox "Ready"
Case 11: MsgBox "Reconnecting"
End Select