Click to See Complete Forum and Search --> : How to Play WindowsMedia within HTML page?
Four_of_Five
09-21-2003, 02:14 PM
I'm not sure if this is the correct term to use...but how do you "stream"(???) or play an AVI file (whether in WM or RealPlayer or QT) in a particular position embedded within an HTML page? including the corresponding player's controls?
For an example when I click on an image thumbnail, the avi or mpg file gets played in the middle of the page...say within a table or something :confused:
TiA!
spykemitchell
09-21-2003, 02:18 PM
<embed src="" autostart="true" width="200" height="200"">
autostart means that it starts when you load the page...
This really only works for Quicktime and Windows Media and if it's sound you want to stream then you should really put in
<bgsound src="" loop="infinite">
if you want it to be the background sound...
Four_of_Five
09-21-2003, 02:21 PM
I'm not sure if this is the correct term to use...but how do you "stream"(???) or play an AVI file (whether in WM or RealPlayer or QT) in a particular position embedded within an HTML page? including the corresponding player's controls?
For an example when I click on an image thumbnail, the avi or mpg file gets played in the middle of the page...say within a table or something :confused:
TiA!
PeOfEo
09-21-2003, 02:25 PM
Its very simple
<EMBED SRC="filename.???" loop="1" height="??" width="??" autostart="true"></EMBED>
this will open in whatever the users defualt player is for that format. If its an avi or mpeg it will open in media player is its a .ram or something it will open in real player etc.
Four_of_Five
09-22-2003, 03:17 PM
Thanks for the replies.
But....what if I dont want the video file to play immediately...but rather, start to play when I click on a particular link and only in a particular spot on the page. It's like having a "tv screen" within a page (it'd be nice to have the controls included)
PeOfEo
09-22-2003, 05:01 PM
To use the windows media start control put
autostart="false"
Four_of_Five
09-25-2003, 03:40 PM
Originally posted by PeOfEo
To use the windows media start control put
autostart="false"
Thanks...but it's not exactly what I'm looking for...
++++++++++BUMP++++++++
I mean I know you can "insert" videos within webpages...that's easy enough (and even have the controls show up)..but how do you actually create/embed a "dynamic" video screen w/in a webpage that you can turn on and off (and change "channels") when different button/links are clicked within the page? It's basically like having a "TV screen" on the page....it's idle/standby until you "turn it on" and changes to other video files when you click another buttton.
PunkSktBrdr01
09-25-2003, 03:57 PM
Well, if you want to use multiple videos, you could make a page for each one, or you could use JavaScript. I think this might work:
<script type="text/javascript">
funtion changeChannel(channel) {
document.tv_screen.src = channel;
}
</script>
Put that in the head of the page. Then add name="tv_screen" to the embed tag. In each link that will change the video, change the href to '#' and add onClick="changeChannel('video file name');". I think that's what you're looking for.
Four_of_Five
09-25-2003, 04:36 PM
Originally posted by PunkSktBrdr01
Well, if you want to use multiple videos, you could make a page for each one, or you could use JavaScript. I think this might work:
<script type="text/javascript">
funtion changeChannel(channel) {
document.tv_screen.src = channel;
}
</script>
Put that in the head of the page. Then add name="tv_screen" to the embed tag. In each link that will change the video, change the href to '#' and add onClick="changeChannel('video file name');". I think that's what you're looking for.
Hmmmm....this seems promising! :D Thanks a bunch!
Actually, you also game me the idea of creating "multiple" page frames within a page...but I think your code might just work even a lot better.
So how does this go?
<body>
<embed src="what do I put in here?" name="tv_screen">
<a href="#" onClick="changeChannel('videofilename);">Video 1 </a > Is this right???
Btw, Will this play the video in just one spot???
micklep
05-19-2006, 07:57 AM
Hiya is there any way that i can play 3gp videos on a html page without converting it to mpeg? is there another way to do it?
thanks peter
I'm not sure if this is the correct term to use...but how do you "stream"(???) or play an AVI file (whether in WM or RealPlayer or QT) in a particular position embedded within an HTML page? including the corresponding player's controls?
For an example when I click on an image thumbnail, the avi or mpg file gets played in the middle of the page...say within a table or something :confused:
TiA!
4 of 5,
This is the code for embedding Windows media player into your html page. You'll have to play around with it to get the window on the page where you want it.
Create an html page placing the following on the page...
<OBJECT id="VIDEO"
style="position:absolute; left:19;top:19;width:480px; height:360px"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="http://YOURSITE.COM/YOUR VIDEO NAME HERE.wmv" ref>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM name="uiMode" value="mini">
<PARAM name="PlayCount" value="1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="80">
<param name="mute" value="0">
<param name="stretchToFit" value="1">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
</OBJECT>
Link to this html page with a link or a button. Change parameters of the blue text.
jjack
05-22-2006, 02:24 AM
I think the best way to Play WindowsMedia within HTML page is using flash video, and on2 vp6 encoder has good quality.
I just made a forum (http://www.*******.com/forum/) that what to learn flash video(flv) with someone who interest in flv.
I think the best way to Play WindowsMedia within HTML page is using flash video, and on2 vp6 encoder has good quality.
I just found a forum (http://www.*******.com/forum/) that what to learn flash video(flv) with someone who interest in flv.
jjack,
I just went to your link and there is only one post on the entire site. How did you just find this place? There is certainly nothing informative on the subject. I'm guessing that this is your site and you’re out trying to find people to come to the site, and there is nothing wrong with that, but like I said... nothing there to help on the subject of embedding videos.
jjack
05-22-2006, 11:49 AM
Oh, I'm sorry for my poor english,
I mean I am the author of the forum, and want to talk with someone who interest in flv on that forum.
CrazyMerlin
05-22-2006, 02:13 PM
All of the above is good and well, but what if they are not using IE?
That object will not even show up in FF.
A simple approach is to use an object for IE and an object for FF (this one 'inside' the IE object declaration).
When IE loads the page, it will try and get the first object, and if it fails will try and get the second. FF works the same. It will fail to load the first object, but then load the second.
Your approach is far too simple, and wrong.
You don't need a different page for each move, you simply store the movie name and it's location in an array, or in a SELECT drop down, and then when they want to change movie, you stop the currently playing one, change the url of the object and play it.
The methods you use to play depend on the version you use of media player.
6.4 uses OBJECT.play() and OBJECT.stop(), whereas newer versions use OBJECT.controls.play() and OBJECT.controls.stop();
Another pitfall to watch for is the different ways to load a movie depending on the browser.
Hope this helps.
All of the above is good and well, but what if they are not using IE? That object will not even show up in FF.
A simple approach is to use an object for IE and an object for FF (this one 'inside' the IE object declaration).
When IE loads the page, it will try and get the first object, and if it fails will try and get the second. FF works the same. It will fail to load the first object, but then load the second.
Your approach is far too simple, and wrong.
You don't need a different page for each move, you simply store the movie name and it's location in an array, or in a SELECT drop down, and then when they want to change movie, you stop the currently playing one, change the url of the object and play it.
The methods you use to play depend on the version you use of media player.
6.4 uses OBJECT.play() and OBJECT.stop(), whereas newer versions use OBJECT.controls.play() and OBJECT.controls.stop();
Another pitfall to watch for is the different ways to load a movie depending on the browser.
Hope this helps.
Well you just proved my point about not using browsers other than IE. Your right, if someone decides to use FireFox, then they must know that they will find many places on the internet where they will not see all there is to be seen. So why would someone want to use a browser that doesn’t give you everything, when IE will and it free too. Let’s see… Here is an incomplete list of browsers.
AWeb II
Amaya
Arachne
Cello
Chimera
Grail
HotJava
I-Comm
I-View
IBrowse & Amiga Mosaic
iCab
InterGo
Internet Workhorse
Lynx
IE
Multilingual Mosaic
NeoPlanet
NetCrusiser
Netscape
OmniWeb
Opera
Quarterdeck Mosaic
STiK/CAB
Sesame Navigator
SlipKnot
Softerm Plus
SurfIt
Tango
Tiber
TkWWW
UdiWWW
Voyager
WebExplorer
WebTV
What about coding for them? I decided along time ago to go after the major market and not bother with those who use browsers like Firefox that won’t show everything. According to the latest stats, IE still is being used by 62.3% of the world’s market. I suspect that as soon as more people realize that the reason Firefox doesn’t have as many holes in it is because it doesn’t do as much, they too will return to using IE.
If your car doesn’t have an air conditioner, then you will never need to worry about your car’s air conditioner quitting on you… right? The only problem is that you don't have an air conditioner. Firefox is far from being a browser that I would use... and yes... I've tried it. It's a light weight.
The most wonderful thing about working on the internet is that everyone has a choice to do what they want to do. I prefer going after the biggest market with the least amount of effort… considering that I have many computers to look after, while creating sites and programs. I don't have time to code for every browser, so those who use IE will always be able to see my work. Those who don't aren't only missing out on what I do, but miss out on a whole lot more than that.