Answered
I am using "app.media.openPlayer( args1 )" to play the media using Javascript. How do I stop or close this embedded media using Javascript?
I am using "app.media.openPlayer( args1 )" to play the media using Javascript. How do I stop or close this embedded media using Javascript?
For example:
var oPlayer = app.media.openPlayer(...);
// Stop
oPlayer.stop();
//Pause
oPlayer.pause();
//Play
oPlayer.play();
//Close
oPlayer.close();
If you are opening the player from a button script then you'll want to assign the player object to a document level variable.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script