Using app.launchURL to make an mp3 play in hosts default program?

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

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 2Choose 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 

Similar Messages

  • Problem using app.launchURL with Adobe Reader X

    Hello -
      Have an application that is going live in a couple of days.  In many of our fillable PDF forms we use:
    app.launchURL("http://www.yoursitehere.com", true);
    This worked fine until our company pushed out Adobe Reader X to all of our employees.  Now the above function does nothing.
    Is anyone experiencing similar?   When I say the function does nothing, you click on button that runs the above function, and no new window opens with specified URL.

    I am not quite sure what that means.  Can you please explain?
    This has worked on same client pc before with version 7 - 9.   Now doesn't work anymore since upgrade to Adobe Reader X.
    Note:  ALL other AcroScript functions work properly
    Really appreciate any assistance you have.
    Jeremy
    *** UPDATE *** - I just tested more.   The only thing that is NOT working is the second parameter of the launchURL.
    If I remove that parameter, or put FALSE, then the URL opens.  However, it opens in the same window which is not what we need.
    Putting TRUE in there produces no result.
    Message was edited by: jred33

  • How can I make music (mp3) play automatically in one Scene (NO buttons)?

    How can I make an mp3 play automatically in one Scene (NO buttons)? I have been searching the net for answers for over 10 hours with no answer... My movie will not be for the web, it needs to be portable (CD or flash drive)...
    PLEASE HELP!!!!!!!
    thank you!

    You just need to look in Help for the Sound class and possibly SoundChannel... if you have an MP3 in your library - right click it, and go to properties. Set the sound to export for ActionScript - and give it a class name - mySound will work. Then you can make it play with something as simple as:
    var a:SoundChannel = new mySound().play();

  • Can I submit form using app.launchURL

    I want to submit a pdf form without replacing my page. I need it open in new tab.
    The script below is work, but it replaces my old page
    this.submitForm({
    cURL:
    "http://localhost:8080/project/TestServlet",
    cSubmitAs:
    "PDF",
    cCharset:
    "utf-8"
    This script is open a new tab but I have no idea how can I submit a form using this
    app.launchURL("http://localhost:8080/project/TestServlet", true);
    Can anyone guide me how to submit form with open new tab on the web browser?
    Thanks.

    No, you can't submit the form like that. You could submit some form data as
    a URL parameter, though.

  • Have downloaded Netflix app for iPad. Can't play any Netflix tv programs

    Cannot play Netflix videos after downloading and installing Netflix app

    just tested mine, and works fine.  How's your wifi connection speed? (use speed test app)  If it continues not to work, delete the app and re download.  Also, just for troubleshooting purposes, shut down any other apps that may be lurking in the background.  but the netflix servers are up and running fine - and the app works fine
    (assuming you are in USA?)

  • App.launchURL() Frustration

    Hi,
    I have searched all the documentation I have available. I have searched this forum and every other Acrobat forum I could find, I have searched the web and still have had no luck with a solution to this problem:
    the method app.launchURL("http://www.example.com/", true); does not open the link in a NEW window but opens the link in an existing window. Is there any way to make this work using Acrobat Reader 7 or above in Internet Explorer 6 or above?
    Lots of people have asked a similar question but I have yet to find a solution.
    Thanks
    Simon Kemp

    Any solution found?
    I have a pdf form displayed in a browser window (using fdf toolkit/ASP.NET). I want a button to open a new browser window and display another pdf file that is on the server. Under Acrobat 7, this worked well using app.launchURL(http://www.mysite.com/myfile.pdf, true). This doesn't work under Acrobat 8. It just hangs IE. I think this is because it needs to use a trusted function. I don't see that I can because I don't have access to the App/Init event - only the document event.
    The following doesn't work either - it causes "Internet Explorer cannot download . Unspecified error":
    getURL("javascript:void(window.open('http://mysite.com/myfile.pdf'))", false)
    Is there any way whatsoever that I can have Adobe Reader 8 displaying a pdf in a new window from a link/button in a pdf? And in Reader 5 and 6 too?

  • I need to play a song on a Keynote presentation, how do I do this ? I use to drag and drop the mp3 in Keynote but it stops playing when the slide move to the other one... how can I make the song keep playing through the whole presentation ? Thanks.

    I need to play a song in a row in a Keynote presentation, how do I do this ? I use to drag and drop the mp3 in Keynote but it stops playing when the slide move to the other one... how can I make the song keep playing through out the presentation ?
    Thanks.

    Drag the file into the audio window in the Document inspector...

  • Can I make an mp3 using Quicktime Pro?

    can I make an mp3 using Quicktime Pro?

    QuickTime can play .mp3 files and can edit audio formats but it can't export to .mp3.
    Use iTunes for that.

  • I'm having trouble making calls with my Iphone 4. When I try to, the person on the other side can't hear me, and all I can hear are noises. But when I use apps like Viber or Facetime, I can make calls just fine! What may be the problem?

    When I try to, the person on the other side can't hear me, and all I can hear are noises. But when I use apps like Viber or Facetime, I can make calls just fine! What may be the problem?

    Did you fix the problem? I have the same problem and it has been pain in the neck.

  • I have created a PDF with mp3 audio clips, the file works on PC's with audio playback (WIndows 7, 8 ) however the audio does not play when hosted on a website or an ipad/tablet computer or smart phone when used with PDF reader

    I have created a PDF with mp3 audio clips, the file works on PC's with audio playback (WIndows 7, 8 ) however the audio does not play when hosted on a website or an ipad/tablet computer or smart phone when used with PDF reader

    adobe42135678 wrote:
    the audio does not play when hosted on a website...
    When viewing in what browser?

  • When i import movies from my iPhoto app to my iMovie app does it make a copy (thereby using double the hard disk space) or does it link to my iPhoto app? The reason i ask is i want to archive all my videos from iPhoto/iMovie. HELP!

    When i import movies from my iPhoto app to my iMovie app does it make a copy (thereby using double the hard disk space) or does it link to my iPhoto app? The reason i ask is i want to archive all my videos from iPhoto/iMovie. Do i need to archive the movies in iPhoto AND iMovie? HELP!

    Hi - I'm having the same problem with freeing up space on the HD. If I can't free space if I'm using any part of the clip, how can I split up the clips so that I can discard the part I won't use? This is crazy! I have only 4 GB of free space left!
    Also, I've tried to transfer the project file to my external HD but I keep getting an error saying I can't transfer it. I've been told this is because I don't have enough space on the HD for the transfer. I tried a similar transfer with another computer with plenty of HD space but the same error occurred. Is there a way to break up the project file into small pieces for the transfer (I'm thinking the whole movie file is just too big)?
    Thanks for any info!

  • HT1454 Is it possible to play games and using apps using Component or Composite  cables with ipod touch 4g?

    Is it possible to play games and using apps on TV using Component or Composite cables with ipod touch 4g?
    Or using universal dock?
    Or this is only for video?

    The iPod only displays TV out for apps that support TV out. The App description will say if it supports TV out.

  • I have used still photos to make a Quick Time movie using FCE.  The DVD made using i-DVD looks somewhat grainy and the motion isn't smooth when played on my TV.  Other DVD's I have made play much better and I am wondering if the problem is my Quick Time m

    I have used still photos to make a Quick Time movie using FCE.  The DVD made using i-DVD looks somewhat grainy and the motion isn’t smooth when played on my TV.  Other DVD’s I have made play much better and I am wondering if the problem is my Quick Time movie settings.  The Dimensions and size of the problem movie are 1920X1080 and 584 MB respectively, while the movies that play better  have Dimensions of 853X480 and are about 1.3 GB in size.  Is this the source of my problem and how do I change things for the better. 

    Are you exporting to QuickTime Movie, or to QuickTime Conversion?   For iDVD, you need to export to QuickTime Movie.   Exporting to QT Conversion will kill the quality if you are moving the video from FCE to iDVD.
    The file size per se makes no difference.
    What size (pixel dimensions) are the photos that you put into your 1920x1080 sequence?  Also, exactly what are the sequence properties ... is it 1920x1080i60 ... or i50?  In North America it should be i60.
    853X480 is an odd frame size.  Where are you seeing this number?  It would appear to be DV-NTSC, which has a frame size of 720x480.  Your 1920x1080 frame size would not be DV-NTSC, it would be Apple Intermediate Codec.   DV and AIC will look different, for sure.
    Also, your quality setting in iDVD can affect the final video.  You may want to check that also (in iDVD Preferences > Projects).  Set it to Professional Quality if at all possible.

  • Forcing iPod to play while using apps

    Not sure if this is possible, but is there a way to force the iPod to play even when using apps? I turned off the app audio, but the app keeps stopping music from ipod on the iPad.
    Want iPod to always have priority. Again not sure if this is possible.

    Not sure if this is possible, but is there a way to force the iPod to play even when using apps? I turned off the app audio, but the app keeps stopping music from ipod on the iPad.
    Want iPod to always have priority. Again not sure if this is possible.

  • Using a bluetooth headphone, how can I play/pause and skip tracks on apps like Spotify?

    I have just bought the Sennheiser MM 550-x bluetooth headphone. I am not able to use the headphone's bluetooth buttons to play/pause and skip tracks in Spotify and other non-Apple apps in Lion. The bluetooth controls (avrcp) work in iTunes and QuickTime player, though. The same issue applies to the Apple headsets with inline remote controls. Is there a workaround for this, like third party remote apps  that responds to bluetooth commands or let you remap incoming bluetooth commands?

    I'm having the same issue with my Philips, I have tested on ML and Maverick and still happening,  the controls just work with iTunes and I always use spotify... Any solution for that!?!!?!?

Maybe you are looking for

  • Mini-DVI to HDMI has poor quality on the TV

    I am trying to watch TV On-line on my Samsung HD TV. I have purchased a mini-DVI to HDMI converter to connect my iMac to my TV. It's working, but the display quality is very poor. I have tried to Mirror the display and not and that's the same. The Di

  • Testing Dunning Letters

    I want to run some tests using the Dunning Wizard. The problem that I have is that Dunning date-stamps records when it runs and then will not process records to the next level until a specified number of days has passed, the minimum being one. Does a

  • Zero Out All Data and GUID

    I'm just formatting a second hard drive for backup purposes. I've decided I want to zero out all data to ensure that the drive maps out bad blocks, and then I'm going to create a GUID partition just in case I decide to make it a boot drive in future.

  • IMac G4 Startup Problem

    Hello Everyone, I got an iMac G4 for free, wiped the HD and put 10.2.3 on it. But now when I start it up, it will be normal sounds and fan goes on, but it gets to the gray screen and Apple logo, and... Nothing. It won't load. I have tried putting in

  • DatabaseMetaData.getTypeInfo ()=NULL when use JDBC Driver 9.2.0.5

    Why DatabaseMetaData.getTypeInfo () is NULL when use JDBC Driver 9.2.0.5 to connect Oracle 9.0.1.1.1 database? In the following links http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_02 the segment "Which JDBC drivers suppo