Question : How to play a video file in JSP

Im woking on CMS projects, where we need to play video files. However, we do not know what would be extensions of video files like .mp4,vob,....First, user will upload these files to server and then they will play the file.

How to play the uploaded file using jsp?

Answer : How to play a video file in JSP

You can use the <OBJECT> tag in conjunction with the <EMBED> tag to show the video files. However you would need to provide the video type to the tag to enable it to show the video. You can do that by looking at the file extension and adding the relevant type in your tag programaticaly.

Here are some links to get you started

http://www.w3schools.com/media/media_browservideos.asp
http://www.roseindia.net/jsp/add-flash-jsp.shtml


Random Solutions  
 
programming4us programming4us