Avatar

Level 6

Hi,

Some time ago I downloaded JavaScript for Acrobat API reference doc. In this doc i found some function which can be helpfull for you - getPlayers.

I didn't check is it working in Designer ES or not, but you can try )

 

 

 

Example 1

List MP3 players to the debug console.

var mp = app.media.getPlayers("audio/mp3")

for ( var i = 0; i < mp.length; i++) {

console.println("\nmp[" + i + "] Properties");

for ( var p in mp[i] ) console.println(p + ": " + mp[i][p]);

}

Example 2

Choose any player that can play Flash media by matching the MIME type. The code assumes the code below is executed as a Rendition action with associated rendition (so no arguments for createPlayer are required).

var player = app.media.createPlayer();

player.settings.players = app.media.getPlayers( "application/x-shockwave-flash" );

player.open();

BR,

Paul Butenko