Windows Media Player object fullscreen play

Skip to first unread message


Aug 28, 2004, 7:57:54 AM8/28/04

I have installed the Windows Media Player 9 and PowerPoint 2003 on my
computer and now I want to play a MPEG movie in a PowerPoint
presentation. I insert an Windows Media Player object and configure the
object by selecting the properties via the rightmouse context menu of
the player object.

I have setup all properties as I like to have:
URL: (a MPEG file on the harddisk)
enableContextMenu: True
enabled: True
fullScreen: True
stretchToFit: False
uiMode: none
windowlessVideo: False

When starting the slideshow is runs one time correctly. After the
slideshow has been finished, the settings fullScreen and stretchToFit
are jumped to False spontaniously. Why? Also a save of the presentation
in between does not help.

Last year I had the same kind of problem in PowerPoint 97, but that time
I have solved that problem with some VBA code. I just changed the
fullScreen property to True when the PlayStateChange event occurs with
the new state 3 (Playing). Now I've tried the same trick with PowerPoint
2003. That works fine as long as I do not close the PowerPoint
application. When the applicatoin is restarted with the presentation,
the VBA code will not execute anymore.

Resizing the Media Player object to the size of the slide does also not
help. Media Player does just play the movie in a small box in the middle
of the screen, it is really necessary to change the fullScreen property
to True.

I have tested this behaviour on several computers (all Windows XP Pro
platforms) and they do all behave the same. I have also installed
PowerPoint 2002, but that behaves exactly the same as PowerPoint 2003.

Note: Using PowerPoint 97 isn't an option since I want to use the
improved animation effects of PowerPoint 2002, 2003.

Can somebody tell me what I'm doing wrong? How can I solve one (or both)
of the above described problems?



Aug 28, 2004, 9:17:42 AM8/28/04
You don't need to run the Media player object to play a
video file in PPT. Just insert the movie (avi & mpeg NOT
quicktime) and give it some play attributes. Why are you
inserting the MediaPlayer 9 object?




Aug 28, 2004, 4:39:25 PM8/28/04
I use the Media Player object, because that is the only way (that I
could find) where my video is playing in PPT.

Inserting the video as you propose does not start the video (PPT is
asking me whether I want to start playing automatically, then I click
YES). I have read and executed the steps that I found at
successfully, but the video will not start playing in PPT. At one PC,
the PPT application crashes when inserting a video file.

As I have written before, the Media Player object is working fine, but
PPT will not save my settings for the object and VBA code is not
executed anymore after closing the program, isn't that strange? Is that
a bug in PPT?



Aug 29, 2004, 8:23:06 AM8/29/04
Really.... I'm not a code person, but I would make sure your video files are
all mpeg1 and insert them as directed they can be sized and even clipped if

Powerpoint is a pain sometimes eh?


Mike M.

Aug 30, 2004, 9:07:22 AM8/30/04
It is a bug in the Windows Media Player ActiveX control. If you do a search
on google groups you can see some reports. Here is a potential work around
from MS:

"Roy" <> wrote in message


Aug 31, 2004, 2:19:41 PM8/31/04
Thanks for your support, I will have to download SP1 and SP3 over a ISDN
64K line, so that will take a while :-(. Last year I have also used the
Media Player 9 object, so that explains that I discovered the same
problem in PPT 97!

In the meantime, I also discovered why PowerPoint does not execute the
VBA code after I have closed the file. I have to change the macro
security to (atleast) medium. When I then open the file again, PPT will
ask wether I want to activate the macros or not. When I activate the
macros, the VBA code is executing very well and I do have the fullscreen
functionality as I want it.


Mike M.

Aug 31, 2004, 3:14:47 PM8/31/04
Glad you worked it out. These little annoying bugs cause lots of pain.
Good thing the local has my favorite pain medication!

"Roy" <> wrote in message

Dec 6, 2016, 6:02:59 AM12/6/16
Here's a fix that is relatively straightforward

right click the object in your PowerPoint and open the view code:
Change it to the code below:

Private Sub WindowsMediaPlayer1_PlayStateChange(ByVal NewState As Long)
With Me.WindowsMediaPlayer1
If .playState = wmppsPlaying Then
.fullScreen = True
End If
End With
End Sub

Save the change and run your show it will open in full screen!
You will need to change the code each time you use Windows Media Player in other PowerPoint presentations.
Reply all
Reply to author
0 new messages