Embeding audio player in jsp page.

Hello All,
I have embed the quickTime player in a jsp page. Following is my code snippet of the object embedding.
When I run the project my programme download and save the amr file from my database in the specified project location("../image/"+recordId +".amr"), but not run the amr file. Only logo of the player is displayed. Next Time when i run the project again, the amr file run smoothly. Probabely the problem is, when the programme run first time it could not find the required amr file location.
My requirement is, after click a button, it will download the amr file in specific location and then read the file from that path. The file download successfully before embedding the object, but do not run the file.
Also, the programme could not run the amr file from other than the project location. I am new in developing the jsp page, where amr file have to be play directly from the page. How can i solve the problem?
any idea, please help.
Code snippet:
<% String recordId = request.getParameter("pId");
String path=null;
path="../image/"+recordId +".amr";
%>
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="50" height="50" standby="Data is loading..." codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value=<%=path%>>
<param name="autoplay" value="false">
<param name="controller" value="true">
<embed src=<%=path%> width="75" height="50" scale="1" autoplay="false" controller="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>

uhr wrote:
When I run the project my programme download and save the amr file from my database in the specified project location("../image/"+recordId +".amr")Why are you copying the file from DB to disk file system? This makes no sense, you're only duplicating the bytes and adding unnecessary overhead. Either keep it entirely in the DB, or just keep it at the disk file system and have the file attributes only in DB.
but not run the amr file. Only logo of the player is displayed. Next Time when i run the project again, the amr file run smoothly. You apparently did not close the file outputstream after write.
My requirement is, after click a button, it will download the amr file in specific location and then read the file from that path. The file download successfully before embedding the object, but do not run the file.
Also, the programme could not run the amr file from other than the project location. I am new in developing the jsp page, where amr file have to be play directly from the page. How can i solve the problem?By closing the streams/resources properly.
Code snippet:Comment: scriptlets are bad. You should use taglibs/EL.

Similar Messages

  • A way to link to embedded audio player

    I am very new to this and am trying to add the audio (mp3)
    from a conference that my office held to our website. I wanted to
    have a list of the presenters at the conference to the left of my
    page with each name being a link to one embedded audio player on
    the right. Is this possible to do? I can figure out how to embed
    the player with a playlist and just have the viewer control it from
    the player but I would prefer to use a sleeker player that does not
    incorporate a playlist viewer - so the ability to be able to link
    multiple links to the one embedded player would be perfect.

    Search Google for "free flash mp3 player". There are many
    that you can
    incorporate.
    Alec
    Adobe Community Expert

  • Embedded audio player in Internet Explorer

    I have created a webpage that has several sound files on it that people can choose which clip to listen to by pressing play (pause, fast forward, etc.) on the plugin control panel. In firefox and chrome, the sound files come up with the plugin control panels visible and ready to use. But in Internet Explorer, only two of the seven control panels show up and IE popups appear asking if I want to download a certain sound file - I can open or save it. But the control panels for those clips never appear on the page. So if I save a clip, I have to search for it on my computer and play it outside of my website. Is there a fix for this or do I have to type out detailed instructions on the webpage for IE users?
    If you'd like to see what I mean, the page is: www.reginazona.com/soundNEW.htm

    Sound is a tricky son of a gun in browsers. There are a couple of reasons you are having issues...
    1. Pretty much all of the browsers use different plug-ins to play different media types (not counting HTML 5 browsers). Depending on what the viewer has installed, and what their settings are, different players will handle the files in different browsers and in some cases, there won't be a plug-in associated with a file type so it will want you to download it because the browser doesn't know how to handle it. You currently use 3 different file types for your audio, you might want to fix that so you can somewhat control which player will load.
    2. The <embed> tag is not the way to go for IE, it wants the <object> tag or the <audio> tag (for HTML5).
    Here is a page to explain how to combine embed with object: http://webdesign.about.com/od/sound/ht/htsound.htm This should work for pretty much all browsers.
    As time goes by and old browsers (meaning old IE browsers) don't matter to you as much, look into the HTML5 <audio> tag. It's a much simpler proposition: http://www.w3schools.com/html/html5_audio.asp

  • Possible to play a single embedded audio clip over multiple pages?

    hi
    i'm wondering if it's possible to have a single audio clip play over more than one page in an interactive pdf generated in indesign cs5.5?  in the media preview it seems to work but when i export to pdf the audio stops playing when i move to the next page, even when the "stop on page flip" is NOT checked in the media object options box.
    what i want is the oppositite of an object with multiple states; looking for a single media object with multiple pages.  thoughts?  i'm publishing song lyrics, need to have the audio playing through the whole text of the piece when it runs to the next page.
    thanks

    In the other forum I stated:
    It can be done by choosing the right option but it has been my experience that the continuous playback only works in Adobe Acrobat and not in any version of Adobe Reader across different devices including computers.
    Your best bet would be to publish an interactive Flash file and if you need that to be on an iOS device get someone with an iOS developer license to convert the published Flash file into an iOS app.  You might even be able to convert the Flash file into an epub like a digital magazine but I am inexperienced with this aspect of InDesign.  There are good tutorials that I've seen briefly on creating epub digital magazines from InDesign though so do some research on it and report back. 
    Have you explored any of this thus far?  I hope you get some good results.

  • EMBEDDING AUDIO IN A WEB PAGE

    I have placed a mp3 file in a flash document and exported it
    to a .swf file and inserted it in a web page and it does not play
    the music on the web site

    Did you set it to AutoStart?
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "PONY_PIRATE" <[email protected]> wrote in
    message
    news:e6n4m3$7r1$[email protected]..
    >I have placed a mp3 file in a flash document and exported
    it to a .swf file
    >and inserted it in a web page and it does not play the
    music on the web
    >site

  • Help with mediaelement audio player, iPad resizing, and lytebox.

    I'm a noob but trying to build my own site in iWeb and using Coda to edit code.
    I am a music producer and my website has a page on it that showcases some audio.
    I have 3 issues that after about 30 hours of research and fiddling...I can't for the life of me figure out.
    I am a music producer and my website has a page on it that showcases some audio.
    1. Lytebox - I am using a lytebox to open a page I designed (HTML page in iWeb) that has 2 links on it so the viewer can choose where they want to go. When said lytebox opens and one clicks one of the two links, the linked page will open within the lytebox. I dont want this. I want the lytebox to close and the linked page to navigate normally in a regular web page.
         After much research I have found a code that lytebox posted to be able to do such a thing. They posted this code:
              <a href="javascript:void(0)"
                      onclick="parent.$lb.end()">End Lytebox from my page inside Lytebox</a>
         I have pasted that code everywhere I can think of and it doesn't work. I'm not even sure where to post it (on the first page where the lytebox links from? on      the page that opens in lytebox? on the page lytebox is linking to?)
         Here is the page i'm referring to: http://dallaskruse.com/dallaskruse.com/dallaskruse.html
         The lytebox link is in the Gramophone at the bottom left of the page.
    2. MediaElement Audio Player - I am trying to build a page where I can showcase about 15-20 audio clips (about 20-30) seconds each.  It is very important to me to be able to hear/view this page correctly on multiple browsers along with tablets and mobile phones. Someone recommended medialement.js.
    After HOURS of trying to figure this out, I finaly found a way to add multiple players but not have them load the audio so as to not slow down the web page...and it just was simply not loading on an iPad.
    Here's my issue:
         I couldn't figure out how to design (in code) how to add text (song name, artist info, etc) that was to my liking in the HTML so I added the <audio> player via <HTML> and just added text around it in iWeb manually. Problem: iPad is somehow resizing the layout and by the time you get to the bottom of the page, the <audio> players have moved and are now covering up the text. Its all a big mess.
         Question: can mediaelement.js use a jukebox style playback?
         Here's a link to the page in question: http://dallaskruse.com/dallaskruse.com/arrangements.html
    3. MediaElement Not Playing Back on iPad - I've ran some tests and when I just have 1 <audio> player on the page, it'll play fine on the iPad. But when there's more than 1 player then none of the <audio> players want to work. I'm not sure what's going on but even after about 20+ hours of sitting at my laptop, I'm thinking of searching around for a jukebox that has HTML5 and Flash fallback that looks NICE and easy to modify for beginners.
    If ANYONE has ANY pointers or can help in ANY way ... I'd be forever greatful. Sorry for the long post.

    in iWeb, on the page in question, i've only got 2 HTML snippets (windows). One for the "Vocals" and one for the "Orchestrations".
    In the HTML snippet, I've coded in 12 players for the "Vocals" snippet and 10 in the other snippet for the "Orchestrations" players.
    So, I guess I only have 2 snippets.
    heres the "Vocals" code
    <!DOCTYPE html>
    <html>
    <head>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <script src="http://dallaskruse.com/mediaelement/build/jquery.js"></script>
              <script src="http://dallaskruse.com/mediaelement/build/mediaelement-and-player.min.js"></script>
              <link rel="stylesheet" href="http://dallaskruse.com/mediaelement/build/mediaelementplayer.min.css" />
    </head>
    <body>
    <div class="player"><p class="song"> Wade in the Water</p><p class="artist">performed by dallas kruse</p>
    <audio id="player1" src="http://dallaskruse.com/mediaelement/media/Vocals/wadevoxMASTERCLIP.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player2" src="http://dallaskruse.com/mediaelement/media/Vocals/45sMasterClip.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player3" src="http://dallaskruse.com/mediaelement/media/Vocals/4amBlues.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player4" src="http://dallaskruse.com/mediaelement/media/Vocals/sunshinevocalsMASTERCLIP.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player5" src="http://dallaskruse.com/mediaelement/media/Vocals/IllSayNothingVocals.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player6" src="http://dallaskruse.com/mediaelement/media/Vocals/ImOnYourSideVocalsMasterClip.mp 3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player7" src="http://dallaskruse.com/mediaelement/media/Vocals/BenjaminOrchVoxMasterClips.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player8" src="http://dallaskruse.com/mediaelement/media/Vocals/MoonRiverVocalArr_2.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player9" src="http://dallaskruse.com/mediaelement/media/Vocals/justsouthvocalMASTERCLIP1.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player10" src="http://dallaskruse.com/mediaelement/media/Vocals/NewJerusalemVocals.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player11" src="http://dallaskruse.com/mediaelement/media/Vocals/RevolvingVocalsMasterClip.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    <br/>
    <br/>
    <audio id="player12" src="http://dallaskruse.com/mediaelement/media/Vocals/StopThis_Vocal Arr.mp3" type="audio/mp3" controls="controls" preload="none">
    </audio>
    <script>
    $('audio').mediaelementplayer();
    </script>
    </body>
    </html>

  • Jmf to play audio file in jsp

    hi,
    i am using jmf to play an audio file in jsp page.
    when i am trying in my computer it works.but when i am trying to access the application from other networked computer using the ip address,the audio can be hear only in the server system itself,not from where we have accessed the application and play the audio file.
    How can i resolve the issue?
    Thanks and Regards
    jai

    Jaisha wrote:
    ..i am using jmf to play an audio file in jsp page.Why JMF? Core Java has had the ability to play sound since J2SE 1.3, using [Java Sound|http://forums.sun.com/forum.jspa?forumID=541].
    when i am trying in my computer it works.but when i am trying to access the application from other networked computer using the ip address,the audio can be hear only in the server system itself,not from where we have accessed the application and play the audio file.I'm guessing you are a newbie to web development. To get the sound to play on the client, will require an applet or JWS launched application.
    How can i resolve the issue?Write an applet or JWS launched app.

  • Audio Player Widget - Muse

    I have searched everywhere for a way to have a simple audio player on a web page in Muse and the code below when pasted into "Insert HTML" gives us the most basic HTML5 audio player.
    <audio controls>
      <source src="horse.ogg" type="audio/ogg">
      <source src="horse.mp3" type="audio/mpeg">
      Your browser does not support the audio tag.
    </audio>
    This gets a basic audio player on the page and is fine if one doesn't mind the default look of the player. (Above Player shown in Safari)
    Basically any audio player that looks different from this one above is going to have to be coded in some way and that's where the difficulty starts.
    The only place that I have found on the Internet that has really small, minimal and clean audio players is at this site:
    http://www.podsnack.com
    which is set up for heavy duty traffic use of the player as their plans support 25,000 plays per day, which is way more than I need, however they do have 2 or 3 really nice looking tiny audio players that are completely editable color-wise that have a base look like these:
    There are more examples here:
    http://www.podsnack.com/mp3-player-examples/
    I love the clean look of the 2 players above, and all the colors are changeable:
    The main drawback with the podsnack site is that even the most basic plan costs $8 per month with a minimum 1 Year up-front payment of $96.00.
    But, they are hosting the audio files on their servers and providing the skin of the player.
    So far this is the only solution I have found to get a really small, clean visually customizable audio player onto a Muse website.
    If Adobe could come up with a way to create some Audio Player Widgets that include some very small clean ones, I would find that to be a great asset to Muse.
    I think that it would probably be easier for Adobe to design a widget that can play the audio file from the user's hosting server rather than Adobe's servers otherwise Adobe is going to be storing a huge number of audio files belonging to Muse customers.
    The audio file can be placed on the user's hosting server in the same way that files such as pdf's are placed there when the user want to provide a link to download the pdf.
    I am requesting that Adobe create some clean, customizable Audio Player Widgets.
    Now that there are Widgets to place YouTube and Vimeo videos plus Social Media icons on pages, Audio Player Widgets are the next logical step.
    Cheers,
    Chris.

    Well, I kept on looking for reliable ways to place simple HTML5 audio players onto pages and I really didn't come up with any useful solutuions.
    Lots of open source JavaScript players etc, which I highly respect and trully wish I had a load of skill with, but I just found them to be out of reach at this time.
    So, I broke down and coughed up the $96/year fee ($8/month) for the podsnack.com player set up and have found them to be absolutely effiortless to use and completely editable with regards to the look.
    I have an example of some tiny players on a page here:  http://amsondesigns.com/misc-files/podsnack-demo
    And the Podsnack example page is here:  http://www.podsnack.com/mp3-player-examples
    BTW, I don't work for Podsnack!
    If Adobe comes up with some Widgets that effectively provide what Podsnack are doing, then for me that will be the answer.
    Until then I'm going to use Podsnack.
    Cheers,
    Chris.

  • Adding an HTML5 audio player to a web page

    I have a need to add audio player to a few band sites where there is a list of songs, or playlist, and someone can pick a song (or more) and the player will play it.  Since the HTML5 audio tag will work only on one file, the only way I have found to do this is to make a separate page for each sound file and have it use it's own instance of the audio tag.  I have seen many sites that have embedded audio players, but have no idea how they did it.  I do see several 3rd party players on the net that can be used.  Do any of you have any recommendations?
    I am not looking to have music start automatically or on page load.

    Look at Pickle Player.  A commercial player that works in all web devices with MP3 audio or MP4 video and supports playlists.
    http://www.pickleplayer.com/
    Nancy O.

  • Embedding SWF file with SAP Netweaver BI Connection to JSP page

    All,
    Is it possible to embed a SWF file with SAP Netweaver BI connection that is already published in BW system to a JSP page?
    Thanks...

    Hallo,
    embedding the published web-template via iframe into the jsp should work:
    <iframe id="test" src="/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?DASHBOARD=TECHNICAL_NAME_DASHBOARD" width="600" height="800" />
    Regards,
    Roman

  • Embedded video/audio player

    Any recommendations on which embedded video or audio player to use for Dreamweaver? I would like something that will give me a playlist.

    Wimpy Rave
    WWD Player --
    http://www.woosterwebdesign.com/flvplayer/
    JW Player --
    http://www.longtailvideo.com/
    FlowPlayer --
    http://flowplayer.org/
    YouTube --
    http://code.google.com/apis/youtube/getting_started.html

  • Embed video player or flash payer on Jsp page

    HI all, I am new to java, and i want store videos in database(Mysql) and also want to retrieve and play videos on my jsp page,like youtube,how can i embed video player or flash payer on my jsp page so that i can play videos of almost all formats. iam doing all this in servlets.
    Can anybody help me?? and give details about all that??
    Thanks.

    Hi thanks for ur response,
    Can you please help me more, i am using eclipse on linux OS and trying to play video,using JMF,by using jmf.jar,mediaplayer.jar,multiplayer.jar files in my applications ,and when i run my class it gives error "No media player found" as there is no media player in linux,so how can i play my video in real player or in some other player in llinux using eclipse.
    iam using sample code provided by JMF to play video.
    Thanks.

  • Flash video/audio player wont load in htm page

    Hi everyone,
    Im trying to use that neat new option in flash 8, import
    video/audio, im trying to add a player to this page but the player
    just wont load, i know the files and folders are in the correct
    place, im confused, can anyone help me understand why its not
    showing.
    it shows when i test view from my PC, but uploaded to my
    server the page doesnt work?
    I never have problems with flash normally.
    many thanks
    Tobes

    thanks man, ive fixed it now thats why you can see them,
    really apreciate you having a look tho, thats our new compilation
    CD coming out soon.
    if anyone is intersted, the problem was a mime setting on
    windows server 2003, you need to add a new MIME type in the IIS.
    Cheers

  • In Firefox 4, I open an audio player (CBC Radio2), minimize it and then close the browser screen while listening. Later, when I reopen the browser, it goes to the last screen viewed instead of to the Home Page I set in "Options."

    Firefox 3 did not do this. It started right after I downloaded Firefox 4. The problem does not seem to occur when the audio player is not running. (I use Windows XP)

    You can check in the Windows Task Manager (Processes tab) if the Firefox program and the plugin-container process are closed properly and make sure that there aren't any hanging processes.

  • Flex2.0 embedded in jsp page 

    Hi,
    I'm developping a web application using jsp nad I want to
    include a flex2.0 datagrid inside my jsp page. is that possible?
    and how? In flex1.5 I know how to do ,but in flex 2.0,I can't!
    Thank s

    I mean's i want to desgin a datagrid user flex2.0,and let it
    in jsp .do you know

Maybe you are looking for

  • Firefox worked on my laptop in UK, but here in USA, it does not work on my Brighthouse Wireless Network, but Internet explorer does. What setting do I ned to change?

    As above, I have also tried downloading a later version, also tried downloading Google Chrome, none work. I have tried using my laptop at several different wifi connections in USA and Firefox does not work on any. So it is not a wifi set up problem i

  • Dbghelp.dll was not found?

    When I try to start up itunes the following measages come up dbghelp.dll was not found Error 7 (Windows Error 126)

  • Smartform PDF email attachment problem

    I am not able to see the attachment of email which is PDF format of smartform. It showing me the blank PDF page. Please check the following code and let me know where is the problem. Thanks in stack. CONVERT PDF FORMAT I_OTF[] = WA_RETURN-OTFDATA[].

  • Error in importing an idoc

    hi friends, i am new to xi.when importing an idoc say from ecc5 to xi for a file to idoc scenario,I am getting this message-'System ECC is running on the specified application server. However, source system sapecc50 is specified in software component

  • (No Agent) Error

    Hi Experts,          I have done a BPM in my system. There is no error in the design and configration. A work Flow was created for My BPM . When i try to execute the BPM it is not successful . When i go and check the  work flow , the first step itsel