A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Playing audio/video in jsp
Joined: Dec 30, 2007
Mar 31, 2009 07:44:00
I am using
action and doing like:
response.setContentType("audio/x-wav"); BlobRetriever blobret=new BlobRetriever(); byte audio= blobret.getAudio(); response.getOutputStream().write(audio); return mapping.findForward(null);
I retrieved a BLOB object in the form of byte array and set the response to jsp page.
The code is working perfectly,
but my audio is opened using Media Player separately.
My aim is to embed the audio in my response.
That is it should play within jsp (using plugin)
I know it can be done using embed tag.
But how can I dynamically call an action and set the embed tag's content
Can I do like <embed src=actionServlet></embed>
I have gone through :http://www.coderanch.com/forums/posts/preList/364096/1590971 but author itself hasnt replied yet.
Help needed from your part.
Author and ninkuma
Joined: Jan 10, 2002
Mar 31, 2009 07:55:39
Please continue any discussion in the original post.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Playing audio/video in jsp
Struts with Ajax
play a wmv file in jsp
Not able to write Binary Data
How to pass jsp values to flash?
Embed TIFF image in response
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014