Im trying to find an easy way to provide audio help from within the forms, so am using app.launchURL to target mp3 files (have soundbooth so can change file type if that helps make it easy).
can someone tell me how or if you can point at an mp3 (or whatever) and include code to make it auto play in the users default audio player
so i guess im after app.launchURL("https://www.whatever.com/mp3samplename.mp3", PLAY_IN_HOST_DEFAULT_AUDIO_HOW?)
thanks
Views
Replies
Total Likes
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 )
See attach.
BR,
Paul Butenko
Views
Replies
Total Likes
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
Views
Replies
Total Likes