Carigamers
Tech Talk => Software, Security, Programming and Internet => Topic started by: Nephilim on October 27, 2009, 04:04:51 PM
-
I would appreciate any help on this.
I have an assignment to do however i am limited to the following.
XHTML 1.0 Transitional/strict
that's it.
yes. that is all. they want me to put a video on the front page of the site AND have it be cross browser (IE/Firefox)
the IE i got working with object
but the document wont validate with embed (which is the only thing i got working for firefox)
if anyone can help me out i'll be very grateful
just so you know. my text has nothing on how to do this...in fact it's a piece of shit. lectures aren't much help either
-
I smell Java
-
Hmm seems you going SAMS, i did this course for first year.
Try using the "object" element
YOu can also Go to w3c.org and look up "object" or video. There you can also check out standard for xhtml strict or transitional and see the rules for elements.
If I can see the code you working with that might be helpful also.
Code example:
<object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628" id="Slider1" width="100" height="50">
<param name="BorderStyle" value="1" />
<param name="MousePointer" value="0" />
<param name="Enabled" value="1" />
<param name="Min" value="0" />
<param name="Max" value="10" />
</object>
-
I smell Java
i wish. if i wasn't so limited i could have finished this days ago
Code example:
<object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628" id="Slider1" width="100" height="50">
<param name="BorderStyle" value="1" />
<param name="MousePointer" value="0" />
<param name="Enabled" value="1" />
<param name="Min" value="0" />
<param name="Max" value="10" />
</object>
this is pretty much the identical code
ill post up my code in a bit, dropbox aint sync nothing to i have to boot up lappy
-
<!-- video start-->
<div align="center">
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" style="width: 340px; height: 256px;">
<param name="src" value="video/mov.mp4" />
<param name="autoplay" value="false" />
<param name="controller" value="true" />
<!-- the embed element is depreciated but still supported by most popular browsers, this will not validate -->
<embed style="width: 340px; height: 256px;" src="video/mov.mp4" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" controller="true" autoplay="false" scale="tofit"></embed>
</object>
</div>
<!-- video end-->
switched to using quicktime instead of windows media
it works but i have to note the use of embed element, the object element in firefox breaks too often and displays a quicktime logo and a question mark. even though it only has rights to play quicktime formats (that error is when it tries to play flash)
thanks for the replies
-
can you use flash? and embed roll over flash video?
-
align is also deprecated when used in <div>, you may want to use inline styles with float:left or right attribute.
Are you saying that leaving out the embed is making the code break in certain browsers?
Also try using a flash video as crixx suggested.
-
ok so as it turns out i fail, nothing was wrong with the original code i used:
<object type="video/x-ms-wmv" data="video/vid.wmv" width="320" height="260">
<param name="src" value="video/vid.wmv" />
<param name="autostart" value="false" />
<param name="controller" value="true" />
<img src="images/allow.png" alt="allow ie to play vid"/> <!--display image showing how to allow vid play in ie-->
</object>
apparently Microsoft WMP does not guarantee integration will all browsers, in other words, the plug in for firefox was missing...i lol'd so hard i shat a brick.
you can find the WMP firefox plugin @ http://port25.technet.com/archive/2007/04/16/windows-media-player-plug-in-for-firefox.aspx (http://port25.technet.com/archive/2007/04/16/windows-media-player-plug-in-for-firefox.aspx)
apparently they work with Microsoft to get windows stuffz to works with teh *nixzorz
align is also deprecated when used in <div>, you may want to use inline styles with float:left or right attribute.
im aware but it constitutes using css which they say i can't use
The web site must be developed using XHTML 1.0 (Transitional or Strict), no other technologies e.g.
CSS, JavaScript should be used.
-
Yea i was wondering how come yours failed cause the code was perfectly fine. I wonder how is NCC going to view your website when video require plugins etc. Are they testing that you know the code for the video to work or does it actually have to play.
I think its the former.
-
both i would guess, even so, regardless of my choice in media, Flash/QT/WMP, all require plugins installed.
IE does it flawlessly because it already integrated, firefox needed some help though.
what media did you use?
-
Well we didn't have to embed a video. We could simple used images. We had to implement a form though but it was not required to work since what would require server side scripting.
The thing is for your video to work NCC would need to use a machine with the plugins installed. That's why i found it strange.
-
the video is new, the year 3's didn't have that either, i did the last one (the honey thing?) but i missed the dead line, i got differed and had to do the one for the December set.
i would assume ncc would have that. it's not like it's a proprietary or otherwise obscure format (like ogg/theora/mkv) MS is pretty common, even if it isn't there is an error notice to pop up if the plugin isn't installed.