Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Embeding audio player in jsp page.

801451Sep 27 2009 — edited Sep 30 2009
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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2009
Added on Sep 27 2009
3 comments
762 views