Here is a code snippet I cannot get to work. What I am trying to do is get windows media player to play an avi and when it is finished playing, I then want windows media player to turn "invisible" until the next time it needs to play an AVI.
If brodyfile = 1 Then 'check character in file and play correct video.
WindowsMediaPlayer1.URL = (App.Path & "\brody1.avi") 'play video
This line below doesn't work. How do I wait for windows media player to finish playing an avi before it becomes invisible ?
While WindowsMediaPlayer1.playState = wmppsPlaying ' This line never works
Sleep (500)
Wend
WindowsMediaPlayer1.uiMode = "invisible" ' This happens before AVI finishes playing.
Endif