•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 402,553 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,344 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2234 | Replies: 5
![]() |
•
•
Join Date: Apr 2007
Posts: 24
Reputation:
Rep Power: 2
Solved Threads: 0
Hai everyone, I am working with one Image/Video Application using JSP.
In my jsp i need to displaying and playing a video file.
I am using the following Embed tag, for the video file.
While using this Embed Tag, such type of video files are not playing(ex: *.flv, *.avi, *.mov, etc.,).
I need to play all types of video files in any browser.
Can anyone help me for this.
Waiting for replies..
Regards
Tamilvanan
In my jsp i need to displaying and playing a video file.
I am using the following Embed tag, for the video file.
<OBJECT ID="mediaPlayer" CLASSID= "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE= "http://activex.microsoft.com/activex...ion=5,1,52,701" TYPE="application/x-oleobject" STANDBY="Loading media player components..." HEIGHT="200" WIDTH="250"> <PARAM NAME="showcontrols" VALUE="true"> <PARAM NAME="autostart" VALUE="false"> <PARAM NAME="loop" VALUE="false"> <PARAM NAME="filename" VALUE="photo/video/<%=category%>/<%=image.elementAt(i*4+1)%>"> <EMBED TYPE="video/x-msvideo" STANDBY="Loading media player components…" CONTROLLER="true" CONTROLS="ImageWindow,ControlPanel" SHOWCONTROLS="true" AUTOSTART="false" HEIGHT="200" WIDTH="250" SRC="photo/video/<%=category%>/<%=image.elementAt(i*4+1)%>" > </OBJECT>
While using this Embed Tag, such type of video files are not playing(ex: *.flv, *.avi, *.mov, etc.,).
I need to play all types of video files in any browser.
Can anyone help me for this.
Waiting for replies..
Regards
Tamilvanan
this looks more like a html error instead of a jsp error. check out http://htmlhelp.com/reference/html40...al/object.html for more info on objects... if not then post under web dev [possibly jsp]
•
•
Join Date: Apr 2006
Location: City of God
Posts: 145
Reputation:
Rep Power: 3
Solved Threads: 8
looks like you are using two similar tag inside of each other, which is resulting into nothing... you can refer to this site: http://cit.ucsf.edu/embedmedia/step1.php to get your embedding code... click on the media type, and give the information it is asking for, it will generate code for you... and plz post in the correct forum.... good luck...
A Perfect World
•
•
Join Date: Apr 2007
Posts: 24
Reputation:
Rep Power: 2
Solved Threads: 0
Hai, Thanks for your replies.
Still such type of files does not playing in browser, like(*.flv, *.avi, *.mp4, etc.,)
In your References, there are separate Embed Tags for each player, such as separate Embed Tag for Windows Media Player, Real Player, Quick Time Player.
But in my system there is installed Windows Media Player only.
I have used the following code for windows media player, to play the video files such as (ex: *.wmv, *.mov, *.mpeg, *.mpg, *.avi, *.flv, *.mp4, etc.,).
and this also
But for those types there are *.flv, *.mp4, *.avi files does not play with this Embed Tag
I need to play all those types of video files also in a same Embed Tag in any browser.
So if there is any aother solution
Thanks in advance
Tamilvanan
Still such type of files does not playing in browser, like(*.flv, *.avi, *.mp4, etc.,)
In your References, there are separate Embed Tags for each player, such as separate Embed Tag for Windows Media Player, Real Player, Quick Time Player.
But in my system there is installed Windows Media Player only.
I have used the following code for windows media player, to play the video files such as (ex: *.wmv, *.mov, *.mpeg, *.mpg, *.avi, *.flv, *.mp4, etc.,).
<object type="video/x-ms-*" data="photo/video/baby/1@barsandtone.flv" width="420" height="360"> <param name="autostart" value="true" /> <param name="controller" value="true" /> </object> and <object type="video/x-ms-wmv" data="photo/video/baby/1@barsandtone.flv" width="320" height="260"> <param name="src" value="<A href="photo/video/baby/1@barsandtone.flv"/>" <param name="autostart" value="true" /> <param name="controller" value="true" /> </object>
and this also
<OBJECT id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="photo/video/baby/1@barsandtone.flv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="photo/video/baby/1@barsandtone.flv" autostart="true" designtimesp='5311' loop="true">
</EMBED>
</OBJECT>But for those types there are *.flv, *.mp4, *.avi files does not play with this Embed Tag
I need to play all those types of video files also in a same Embed Tag in any browser.
So if there is any aother solution
Thanks in advance
Tamilvanan
Last edited by ttamilvanan81 : Oct 4th, 2007 at 3:23 am.
•
•
Join Date: Apr 2006
Location: City of God
Posts: 145
Reputation:
Rep Power: 3
Solved Threads: 8
i still can't understand your question... so u r saying u know how to embed flv or not?
for the media files, it does not matter what type of file you want to play, but what type of object you want to embed.... suppose, for a mpg file, you need to embed windows media player, not mpg file it self... thn u will pass the location of mpg file to the object media player as a parameter... same way, flv is a flash document... u need to know how to embed a flash object... (i am not sure if you can run a flv file using windows media player)... same thing goes for mp4, avi.
if you move this topic to web developers forum in this website, you may find better response.
for the media files, it does not matter what type of file you want to play, but what type of object you want to embed.... suppose, for a mpg file, you need to embed windows media player, not mpg file it self... thn u will pass the location of mpg file to the object media player as a parameter... same way, flv is a flash document... u need to know how to embed a flash object... (i am not sure if you can run a flv file using windows media player)... same thing goes for mp4, avi.
if you move this topic to web developers forum in this website, you may find better response.
A Perfect World
•
•
Join Date: Apr 2007
Posts: 24
Reputation:
Rep Power: 2
Solved Threads: 0
Hai, still i am having the problem,
I have attached the jsp file, what i have used, please refer the file, and let me know what else i have done. The filename was videos.zip
In this file i have using separate Embed/Object Tag for each type of video files, and in my system installed Windows Media Player, Flash player, VLC Media Player.
So with this condition, what can i do for this...
Please reply me, i am waiting for replies.
I have attached the jsp file, what i have used, please refer the file, and let me know what else i have done. The filename was videos.zip
In this file i have using separate Embed/Object Tag for each type of video files, and in my system installed Windows Media Player, Flash player, VLC Media Player.
So with this condition, what can i do for this...
Please reply me, i am waiting for replies.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
advertising application australia bbc bluray broadcast business development digital downloads driving dvd effects format gadget game google handheld hd immigration internet java marketing media merger microsystems movie news nintendo online open platform playstation programming psp pvr services skype software sony stocks streaming sun tv video video game video games visa web youtube
- Get video file total time of playing using php (PHP)
- How to create an exe for a Java application (Java)
- module to get video file dimensions (Python)
- Can any one help me with java application (Java)
- finding ip thru a java application (Java)
- Problem with video file timing (Windows Software)
- Java Executable? (Java)
- How to Open a word doc from a java application? (Java)
- Unable to execute a video file in browser using Java (Java)
- Adapting a Java Application to JSP/Servlets (Java)
Other Threads in the Java Forum
- Previous Thread: Arrays
- Next Thread: Building an array-user-option class to manipulate an array


Linear Mode