aspose file tools*
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
Author

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.

--
Regards,
Hari


Regards,
Hari
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

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
author
Rancher

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

http://www.oreillynet.com/pub/a/javascript/excerpt/learnwebdesign_chap22/

Eric
Ben Souther
Sheriff

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...


Qussay NAJJAR
 
 
subject: Playing Video in JSP