It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Okayyyyyyyyyyyy.

The FINAL thing I have to do for TAFE is to write code. The "sample portfolio" site they gave us to work on is from w3dschools and well... let's just say it's horrendous. Everything is clumped together blah blah and after wrestling with it for ages I've finally got everything looking reasonable.

Last problem? Video files.

Basically - I have used these commands:

<object data="videos/Auslan is Cool edited.avi" type="video/avi" /></br>

<object data="videos/Ninja Story HQ broadcast.avi" type="video/avi" /></br>

<object data="videos/Final edit.avi" type="video/avi" />

and put the video files into the videos folder (yes, I know ftp - the video folder is in the same folder as the html) but I'm stumped. Firefox won't show it, IE does work but when i load the webpage it asks for ActiveX permission then the video box comes up and doesn't play anything...

Am I missing something here?

Is there some way I can add the videos so all three don't load at the same time? Or do I have to make another subfolder and add links?

Any help greatly appreciated. The worker of the solution gets a free gog courtesy of me :)
No posts in this topic were marked as the solution yet. If you can help, add your reply
FileZilla is an actual FTP client, free too, enjoy: http://filezilla-project.org

EDIT: Nevermind, read too fast.
Post edited November 03, 2010 by orcishgamer
avatar
Virama: <object data="videos/Auslan is Cool edited.avi" type="video/avi" />
Have you tried with using a / before the videos folder name so its <object data="/videos/Auslan is Cool edited.avi" type="video/avi" />? There's also a possibility its running into issues with filename spaces even with the quotes, html is a bit weird like that, could be worth removing the spaces (or maybe adding %20's but I'd try the removal first) and trying to link that way
Post edited November 03, 2010 by Aliasalpha
No love... Here's the edited version (with Alias's suggestions)
*********************************

<head>
<meta http-

equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Edan Chapman's Portfolio Website - Videos</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id ="wrapper">
<h1>Videos</h1>

Home | Design Projects |
Photoshop Exercises | Videos | About Me |
Contact Details
<div id ="left-column">

<object data="/videos/Auslan.avi" type="video/avi" /></br>

<object data="/videos/Ninja.avi" type="video/avi" /></br>

<object data="/videos/Final.avi" type="video/avi" />

</div></div>
</body>
</html>

************************
Have you embedded a player object to actually run the videos in the page or are you after links that will just open media player when the user clicks them?
avatar
Aliasalpha: Have you embedded a player object to actually run the videos in the page or are you after links that will just open media player when the user clicks them?
No I haven't put a player - what is the correct code to put in? Just windows media player should be fine, yeah?

Links would be good, but I'd rather have the video play in the website.
Yeah media player should be the default but I'm getting some trouble in that area too. Shall give it more thought (html isn't my strong suit)

You've presumably got correct codecs and set the browser to allow video?
Found this code on some site - maybe that will help?

replace VIDEOFILE.EXT with name of your file

<object id="MediaPlayer1" 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" width="280" height="256">
<param name="fileName" value="VIDEOFILE.EXT">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="VIDEOFILE.EXT" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>
Hmmm I can get an embedded small media player to show but then the full media player loads, says its encountered an error and won't work.

Heh suppose you can't just upload the vids to youtube & stream from there?
I tested above code I posted in html page with some avi file and it works for me.

All needed is to change some options (true or false, numbers)
avatar
Lexor: Found this code on some site - maybe that will help?

replace VIDEOFILE.EXT with name of your file

<object id="MediaPlayer1" 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" width="280" height="256">
<param name="fileName" value="VIDEOFILE.EXT">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="VIDEOFILE.EXT" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>
Didn't work bro. Thanks for top notch effort :)
avatar
Aliasalpha: Hmmm I can get an embedded small media player to show but then the full media player loads, says its encountered an error and won't work.

Heh suppose you can't just upload the vids to youtube & stream from there?
Yeah I'm getting the feeling that's the solution... :(
Will have to do tomorrow at TAFE.

The free gog is still valid for the first person who can give me a working code to load my videos on my html webpage (offline). For now, I guess I'll just stream from youtube.


EDIT: ninja'd!

I'll try out what you said - gimme a few minutes...
Post edited November 03, 2010 by Virama
avatar
Virama: .
Try this.

Also, please make sure that the names actually start with an uppercase in the server and also try and use the full path to them. If that doesn't work try changing the type to video/x-ms-wmv and see if it works that way.

Now, a little bit of history: the reason why Flash took off as a platform was just because of how shitty it was to embed video files in webpages and how little control you could provide to the user. This coupled with the fact that there are x to the y different codecs and that the one viewing your content needs to have it himself installed. On short, it was a world of hurt. So why in gods name would someone ask you to do this using such an obsolete method?

The easier way would be to convert the movies to .flv and use free JW Player to embed them.
Post edited November 03, 2010 by AndrewC
avatar
Virama: .
avatar
AndrewC: Try this.

Also, please make sure that the names actually start with an uppercase in the server and also try and use the full path to them. If that doesn't work try changing the type to video/x-ms-wmv and see if it works that way.

Now, a little bit of history: the reason why Flash took off as a platform was just because of how shitty it was to embed video files in webpages and how little control you could provide to the user. This coupled with the fact that there are x to the y different codecs and that the one viewing your content needs to have it himself installed. On short, it was a world of hurt. So why in gods name would someone ask you to do this using such an obsolete method?
For some WARRGABBL reason it doesn't work.

I tried the video/x-ms-wmv thing too - the video just doesn't load.

And regarding the obsolency - well... it's TAFE. The teachers are okay but... I'm just doing cert II at the moment because it's a prerequisite for cert IV.
Yes, it's frustrating!

I think I'm going to try out photoshop/web next year for IV.
I don't really know alot about html and bbcode but I've noticed you've got a lot of lines ending in
"br" assuming "/br" means "end br" but i don't see the opening br anywhere.

If that sounds completely stupid, just ignore. I'm taking a wild and sloppy shot at the free game. =P
OK, another try - maybe this page will help? http://cit.ucsf.edu/embedmedia/step1.php :D