Playing and Looping an Embedded Windows Media Player Clip

A

andrewuk311

I need help playing and looping an embedded windows media player file
when the document is opened. Can someone please help me out?
 
J

Jean-Guy Marcil

I need help playing and looping an embedded windows media player file
when the document is opened. Can someone please help me out?

Just to play it, supposing it is the first inlineshape in the document:

ActiveDocument.InlineShapes(1).Activate

For more on this, see Jay Freedman's code in this thread:
http://groups.google.com/group/micr...dia+player++group:microsoft.public.word.vba.*

As for looping and other controls, you will have to access the object
through VBA. You will have to set a reference to Windows Media Player in
"References..." under the "Tool" menu of the Word VBA Editor.
Once that is done, you have access to the classes, methods and properties of
the Media player object library.

I have never played with that, you might have to ask in an InterOP group or
a MediaPlayer one fro more details.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top