472,980 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,980 software developers and data experts.

Need Help for Embed Tag to playing all type of video files in any browser

Hai everyone,
I am working with a Image/Video Application.

I need to display and play any video file in browser. Now i am using the following Embed Tag.

Expand|Select|Wrap|Line Numbers
  1. <OBJECT 
  2.    ID="mediaPlayer" 
  3.    CLASSID= "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
  4.    CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
  5.    TYPE="application/x-oleobject" 
  6.    STANDBY="Loading media player components..." 
  7.    HEIGHT="200" WIDTH="250"> 
  8.    <PARAM NAME="showcontrols" VALUE="true">
  9.    <PARAM NAME="autostart" VALUE="false">
  10.    <PARAM NAME="loop" VALUE="false">
  11.    <PARAM NAME="filename"   VALUE="photo/video/<%=category%>/<%=image.elementAt(i*4+1)%>">
  12.    <EMBED TYPE="video/x-msvideo" 
  13.           STANDBY="Loading media player components…"
  14.           CONTROLLER="true" 
  15.           CONTROLS="ImageWindow,ControlPanel" 
  16.           SHOWCONTROLS="true" 
  17.           AUTOSTART="false" 
  18.           HEIGHT="200"  WIDTH="250" 
  19.  SRC="photo/video/<%=category%>/<%=image.elementAt(i*4+1)%>" >
  20.  </OBJECT>
But is does not support such types of video files(ex: *.avi, *.flv, *.mov, etc.,).

So if anyone can help me, for playing all types of video files in any browsers.

I am waiting for replies...

Thanks & Regards,

Oct 3 '07 #1
1 1766
2,364 Expert 2GB
Do forgive me but are you sure you want this in Java?

There are simple JavaScript code examples you can use to achieve this. Of course, I could be be off by a smidging, Java may be your fancy. If this is the case, I honestly do not know, have not tried that yet... Do stay tuned for a good idea from our guys;-)

Fetch Google, or here if I am correct on the JavaScript...

Dec 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Cowan Services | last post by:
My apologies if this has been covered before, but I was unable to download messages before 11/23/05. I am trying to bring some HTML pages w/embedded .WMV files into W3C compliance. Right now,...
by: askMe | last post by:
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's...
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling...
by: Andrew Poulos | last post by:
With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag. How can I check which tag is actually displaying the SWF? I'm using CSS on them and the style on the OBJECT affects the...
by: yawnmoth | last post by:
I'm currious - how do applet, object, and embed compare to one another? They seem to me to mostly do the same thing, so why would one chose one over another?
by: Anil Gupte | last post by:
I want to embed using an embed tag or object tag (like YouTube or others do) to embed a video file in a web page. I want to know if there is an event related to the video being done playing. Also...
by: bilibytes | last post by:
Hi everyone, (don't really know where to post this topic... as i am familiar with php i post it here) i was wondering what technologies should i consider/use to embed some videos on my website....
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.