File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Playing Video in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Playing Video in JSP" Watch "Playing Video in JSP" New topic

Playing Video in JSP

Hari Dhanakoti
Ranch Hand

Joined: Jan 07, 2008
Posts: 74
Hi all,

I have a task of playing an video file on JSP pages.

I had tried to play in some swings its working but i have to play the file in a browser.

Can you please help me on how to play the video file in JSP.


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

"Wing Rider", please check your private messages for an important administrative matter.

[Asking smart questions] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

JSP is merely a server-side templating mechanism to format HTML pages to send to the browser. So you would play video in a JSP the same way that you would any other HTML page. This topic has accordingly been moved to the HTML forum.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Take a look at this:

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Wing Rider:
... I had tried to play in some swings ....

Swing is a proper noun.
[ January 21, 2008: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Qussay Najjar
Ranch Hand

Joined: Jan 18, 2008
Posts: 53
Simply, write the next...

<EMBED SRC="filename.???" loop="1" height="??" width="??" autostart="true"></EMBED>

this will open in whatever the users defualt player is for that format. If its an .avi or .mpeg it will open in media player is its a .ram or something it will open in real player etc..
have fun...

I agree. Here's the link:
subject: Playing Video in JSP
It's not a secret anymore!