Embedding Movies in HTML

R

RobDreugan

Guest
I've found the code to embed a .WMV, in HTML, which I suppose could apply for .ram, or .mov, which I'm not even 100% sure about.

I was just hoping someone could go over the code and explain what options you have available when doing this. Or at least point me in the right direction.

Thanks
 
Joined
Oct 27, 2002
Messages
1,345
Reaction score
0
Points
36
Location
Vermont
Your Mac's Specs
17" iMac G4 800MHz 1GB RAM
Whats the code you have? :)
 
OP
R

RobDreugan

Guest
<object id='mediaPlayer' width="320" height="266"
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="test.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name="ShowStatusBar" value="true">
<param name='loop' value="0">
<embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
src="test.wmv"
width="320"
height="266"
autostart="1"
displaysize='4'
autosize='0'
bgcolor='darkblue'
showcontrols="0"
showtracker='0'
showstatusbar='1'
showdisplay='0'
videoborder3d='0'
designtimesp='5311'
loop="0"
>
</embed>
</object>

Only reason I didn't want to show the code was that if someone knew how to do it from scratch, and explain it well, they wouldn't be influenced by whatever code i had here.

Couple of things that are odd to me, is that it seems when u give something an id tag, like <object id="whatever" that it's referenced somewhere else. My only experience with naming things, i.e. giving them id's, is using CSS to give a style to a certain area that you've named.

Anyway, feast upon this.
 
Joined
Oct 27, 2002
Messages
1,345
Reaction score
0
Points
36
Location
Vermont
Your Mac's Specs
17" iMac G4 800MHz 1GB RAM
Hmm, looks ok to me. You'll probably want to get an answer from some of the other web designers here, as I don't get too heavy into the media.
 
OP
R

RobDreugan

Guest
Oh I have no doubt the code is correct, but I just wish I had a better explanation than a self-explanation on my part on what does what. Excluding the obvious attributes, I'd just like to know what everything does, and if there are any other attribs I should know about.
 
Joined
Jun 11, 2003
Messages
4,915
Reaction score
68
Points
48
Location
Mount Vernon, WA
Your Mac's Specs
MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
Which attributes are you having a hard time with?
 
OP
R

RobDreugan

Guest
<param name='animationatStart' value='true'>

For example, given that, does that mean if i set it to false, it will only play if someone hits play>

<param name='transparentatStart' value='true'>

No idea what this is..

<param name='autoStart' value="true">
this one looks like what I assumed the first one was. I assumed the first means it plays the movie, but that's obviously not it.

autostart="1"

If you tell it to auto start, in the parameter name above, what value is this auto start doing?

displaysize='4'
Are there pre set displays? And why would you use this and specify a resolution for the movie below?

showtracker='0'

What's this?

designtimesp='5311'

And what's this?
 
Joined
Jul 22, 2003
Messages
6,999
Reaction score
187
Points
63
Location
Hamilton College
Your Mac's Specs
20" iMac C2D 2.16ghz, 13" MacBook 2.0ghz, 60gb iPod vid, 1gb nano
im pretty sure of a few things but i could be wrong i havent embedded movies in a while

autostart="1" im pretty sure means it will start it after 1 second. thats just a delay thing
showtracker="0" is the seek bar. i think the higher the number the bigger the seeker is

animationatstart i think is for like the windows media symbol to spin around at start or the quicktime loading thingy
 
Joined
Feb 25, 2003
Messages
5,279
Reaction score
138
Points
63
Location
Tropical Island, Jealous?
Your Mac's Specs
MacPro 3.0Ghz 16GB RAM, 4x256 Vid, 30''cinema display
When ever I find code that i don't know how it works in anything, HTML, perl, C++, applescript, etc... I just take out parts of the code and see how it changes things :D trial and error.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top