video Issue: Media Player logo displays
Posted: Thu Oct 15, 2009 12:34 am
I'm using the subroutine, PlayVideo, to play some of the videos in a game I'm working on, the problem is that Windows Media Player logo shows up after the video plays. How do I suppress it?
- Code: Select all
PlayVideo "myvideo.avi", 0,0,640,480,False
- Code: Select all
Sub PlayVideo(FileName, Left, Top, Width, Height, Repeat)
Action.LoadControl MediaPlayerObject(1)
MediaPlayerObject(1).Move Left*ScreenObject.TwipsPerPixelX, Top*ScreenObject.TwipsPerPixelX, Width*ScreenObject.TwipsPerPixelY, Height*ScreenObject.TwipsPerPixelY
MediaPlayerObject(1).FileName = FileName
If Repeat = True Then
MediaPlayerObject(1).PlayCount = 0
Else
MediaPlayerObject(1).PlayCount = 1
End If
MediaPlayerObject(1).Visible = True
MediaPlayerObject(1).Play
End Sub