I have added Windows Media Player 9 Active X to one of my Access 2007 forms to play video files.
Have just about managed to get it to work, but there is a show stopper. The size of the video keeps changing.
I have code
With Me.WindowsMediaPlayer9
.stretchToFit = True
' .currentPlaylist.Clear
.Width = 10521
.Height = 7014
.Top = 3312
.Left = 6480
.settings.volume = 100
.Object.Controls.play
End With
before each call to show the Video file.
The Height is always correct, but on each alternate call, the width changes between the correct width and about 1/3 the width. Can't fathom
what is causing this. The .wmv file is always the same one, so it is not different files.
Another less important issue is that in the WMP it shows Playlist xxx, where xxx increments on each call. Playlist is irrelevant to me, so just want this
to be blank or some default value.
I know this is a long shot, as probably few people use WMP and probably not in Access 2007.
Would be wonderful if anyone knows how to fix this.