473,748 Members | 6,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Event fired when embed src video starts playing?

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 the user it is
buffering until the video actually begins to play in the browser.

Thanks for any help!

JJ

Jul 14 '06 #1
1 3310

majestik wrote:
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 the user it is
buffering until the video actually begins to play in the browser.
I will not help anyone use embed because it is not official html and
never has been. The modern method is to use object. Embed is an
unofficial hangover from the browser war era.

You can use code something like the below to insert the WMP into your
page:

<div style="text-align:center">
<object data="http://www.cwdjr.info/movie/cancanvbr.wvx"
type="video/x-ms-wvx" style="width:40 0px; height:309px">
<param name="src" value="http://www.cwdjr.info/movie/cancanvbr.wvx"
valuetype="ref" />
<param name="showcontr ols" value="1" valuetype="data " />
<param name="showstatu sbar" value="1" valuetype="data " />
<param name="autostart " value="0" valuetype="data " />
<param name="volume" value="0" valuetype="data " />
<param name="PlayCount " value="1" valuetype="data " />
</object>
</div>

Such code works on modern IE6, Firefox, Opera, Netscape, and Mozilla
browsers with the WMP installed.

The show status bar parameter displays a status bar at the bottom of
the player which indicates buffering and percentage thereof before the
streaming starts. I assume you are storing your .wmv video files on an
ordinary html server and not a special streaming server for which
somewhat different code may be needed. In other words, what you wish to
display is a built in part of the WMP if you decide to use it. The .wvx
files are standard WMP redirector(play list) files that can include
even several videos and will cause them to be played in sequence. The
..wvx files just point to where the .wmv video or videos are stored. If
the WMP is not installed, then you just get no player without problems.
If you want someone to be able to play or download the video in such a
case, you can provide a text link to the .wmv and say to click it if no
player appears. Then, depending on the settings of the viewing computer
and browser used, one may be offered to download the video, play the
video, or automatic playing may start. The recent Real, QT, and Winamp
players, as well as several other players for OSs that can not use such
players all will play some .wmv files if they are set up correctly. But
the WMP is prefered for a .wmv file if it is installed. At least in the
US nearly all of the main stream computers come with the WMP, Real,
and QT players installed as well as sometimes others. This may not be
the case in some regions of the world. Here you have to have both the
WMP and Real if you wish to view video content on many of the largest
sites that display video such as major newspaper sites, TV network
sites, etc.

Jul 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3185
by: Frances Del Rio | last post by:
I have this tag to embed a video: <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="video.wmv" name="Video" width="320" height="312" ShowControls="1" ShowStatusBar="1" invokeURLs="0" autostart="1" enableErrorDialogs="0" ></EMBED> but I need video area bg color to be white, it defaults to black and I
3
3269
by: Z D | last post by:
Hello, BACKGROUND: ============== I've created a Windows User Control that contains an Image Control (among other controls). The user control handles the picture resize event. Whenever the parent that holds my user control is resized, I resize my image so that it uses the maximum available space. Note: It takes about 2 seconds to regenerate the
3
9271
by: sanjana | last post by:
hi i want to fire an event if the screen saver starts up i have done it using a timer tick event where i have used the api function to detect if screensaver has started..but this means continuous polling at each timer click.. private void tick(object sender, System.EventArgs e) { const int SPI_GETSCREENSAVERRUNNING = 114; int screenSaverRunning = -1; // is the screen saver running?
8
5769
by: Roger | last post by:
When I call the session.abandon() method, it calls the session_end event. When a user closes the browser or clicks the log off button, I can dispose of objects and abandon the session cleaning. But, when a user either navigates away from the web app and when the session timesout, the session_end event does not seem to fire. Or when else can I dispose of objects? Or is there an event I can you that is fired when a user navigates away from...
0
2426
by: hmm | last post by:
Hi all I have two problems: Problem #1: I'm using a .NET Form with the property 'FormBorderStyle' set to 'None'. The idea is to completely cover the area of that Form with a UserControl. In order to be able to move that Form around with the mouse I have to implement EventHandlers for the MouseDown, MouseUp and MouseMove event. Now the problem I have is these Events will never be fired because the entire dialog is covered by the...
6
10821
by: tbrown | last post by:
I have a combobox with items like this: {one,two,three}. The selected index is 0, so "one" appears in the combobox text. When the user drops down the list, and selects "two", for example, I modify the Items collection to be {two,one,three} and now want "two" to appear in the combobox text. However, the combobox text is now blank. the is apparently somehow the result of having changed the combobox.Items collection. If, trying to fix...
1
1802
by: ttamilvanan81 | last post by:
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. <OBJECT ID="mediaPlayer" CLASSID= "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" TYPE="application/x-oleobject"
8
6266
by: Bill | last post by:
Our non-profit agency was interviewed on local TV. The TV station has the clip on their web site. However, I'm concerned that it will soon go away. Is there any way for me to capture that video clip, so I can put it on our web site (after getting permission, etc) ? it's at: http://media.vmsnews.com/MonitoringReports/021108/522486/G001319960/
8
2153
bilibytes
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. do you know if i should use flashplayer or .mov or... how should i do to make the video stream whilst playing in order to avoid that the user waits until it gets loaded...? if you have any experience on that, i would be very pleased to hear...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.