473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Dynamically load video?

I have a html page with an embeded video and a drop list. What I would
like to do is have the user select a video from the drop list, then
replace the embeded video on the screen. Is there a way to change the
video that is embeded in a html page?

Sep 6 '05 #1
2 3050
je*********@hotmail.com schrieb:
I have a html page with an embeded video and a drop list. What I would
like to do is have the user select a video from the drop list, then
replace the embeded video on the screen. Is there a way to change the
video that is embeded in a html page?


For RealPlayer you can find the documents about scripting with embedded players
on realnetworks:
http://service.real.com/help/library...realscript.htm

There's a method called DoGotoURL(string url, string target) - I don't know if
this is what you're looking for or if it's just for the use of realplayers
integrated browser...

There's another method desribed, PlayClip(url, clipinfo, related_info_url,
width, height, media_browser_url, target, bnow_playing) - sounds better.

Setting another src in the Sites sourcecode shouldn't bring you up to the
desired result - at least I assume that the player should get reloaded or at
least somehow triggered to load the new src.

About WindowsMedia or Quicktime, I don't know anything.
Sep 6 '05 #2
I've not worked a lot with media on webpages but some quick testing
yielded some result with Internet Explorer, and *.wmv movies (i'd think
it would be possible with other movietypes and it shouldn't be that
difficult to transfere to cross-browser compability.....

But anyways - If you have your movies embedded via the object tag, then
you can access the object by getElementById(ObjectID), and then set the
FileName property.
In my quick testing in IE this gave me the new movie without needing to
reload the page.

So basically:
var node = document.getElementById(yourObjectID)
node.FileName = newFileName.wmv

gave me the new movie.

For FireFox, which I didn't bother working out now (gotta leave
something for yourself :)), I'd think you need to get access to the
embed tag in a somewhat similar way because I belive that is the object
used, and access the "src" property.

Sep 7 '05 #3

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

Similar topics

3
by: DaveF | last post by:
I need to put it in a specific place. Here is the old code switch(CAMERA_TYPE_ID) { case "0": case "7": // this is an image
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
4
by: Harry | last post by:
Hello, I have a page with a RadioButtonList and a PlaceHolder control. The RadioButtonList's AutoPostBack attribute is set to TRUE and its SelectedIndexChanged event loads one of three...
1
by: b_naick | last post by:
I have an aspx page which embeds a video. Based on an input parameter id, the appropriate video is played. I've hard coded most the of "<object>" and "<embed"> paramters in the HTML. However,...
1
by: Reza Nabi | last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a...
3
by: synergy_711 | last post by:
I feel like this should be fairly easy but I have been struggling with this for sometime. I have not been able to find someone who's had the same problem as mine yet. ...
10
Death Slaught
by: Death Slaught | last post by:
I'm trying to make a video player out of my users favorite videos. There's a list of links (A-Z) that drop-down on click and show the names of the videos that the user has selected. When the user...
2
by: rakesh19 | last post by:
Hi, I am having a div tag that has a SWF video player inside it. I dynamically change its position on click of a button to pop out as a absolutely positioned DIV in the center of the browser page...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.