Welcome to WebmasterWorld Guest from 54.196.233.208

Forum Moderators: not2easy

Message Too Old, No Replies

Can anyone check my code for me?

Urgent problem w/ AVI on web page...

     
12:21 am on Jul 27, 2001 (gmt 0)

New User

10+ Year Member

joined:Nov 13, 2000
posts:36
votes: 0


I'm trying to embed an AVI file (coded for streaming) into a page and want it to play back using Windows Media Player 7. (Of course, the client needs it tomorrow morning for a meeting...) I must be missing something stupid in my code.

When previewing the page from files on my machine, the movie plays. Once I upload the files via FTP and access the page, it comes up with the player but no movie...

I've tried <embed>:

<embed src="austrian.avi"; autostart=TRUE playback=FALSE>
</embed>

and <object>:

<object id="Player" width="320" height="240"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="autoStart" value="True">
<param name="URL" value="movie_wm7.avi">
</object>

My immediate need is a way to view the AVI using Windows Media Player. (Client is restricted to this player.) Not sure which is better <embed> or <object>, but which ever is used, I need the correct code.

Your help is appreciated.
Janice

Air

4:11 am on July 27, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 0


If you just specify <a href="http://www.yourdomain.com/austrian.avi">Play Movie</a> what happens? I'm wondering if the path to where you uploaded the movie is correct, austrian.avi is in the root?
6:23 am on July 27, 2001 (gmt 0)

New User

10+ Year Member

joined:Nov 13, 2000
posts:36
votes: 0


Yep, both files were in the same directory... Come to find out, the video consultant had encoded it correctly, but changed the file extension from WMV to AVI. (Thought that's what I needed.) When I found that out, it was just a matter of following the instructions I'd found:

To embed Windows Media, the file extension should be WMV. You create an ASX file in a text editor to access the WMV file. The <embed> tag on the HTML file references the ASX file. (Don't ask... but it works.)

This is the best, and easiest, article I found on the subject. I'm writing a personal "Thank you" to this guy...
[workz.com...]

BTW - I've successfully put up streaming video accessed thru QuickTime and Windows Media. If anyone's interested in the down & dirty, let me know.

Thanks,
Janice

4:47 pm on July 27, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 6, 2000
posts:3928
votes: 0


Glad you found a solution! I'm no streaming media expert, so I would have been left scratching my head as well. :)