Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Miscellaneous and Off Topic Forums > Off Topic Discussions


Reply
 
LinkBack Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.
Author
Thread Post New Thread    Reply
Certified Pre-Owned
 
BGCarrera32's Avatar
 
Join Date: Aug 2002
Location: Nanny State
Posts: 3,132
html newbie question about using a thumbnail image to launch video content...

Hi:

New with html and building a small table of thumbnail images that launch images and other content. All of my images are working...but I have a thumbnail snapshot of a video I wish to launch. The snapshot appears correctly in the table, I think my line of "code" is correct, and all of the images, files, etc. are in the same folder. When I click my thumbnail it launches windows media player, but gives me the following message:

"Windows Media Player cannot play the file. If the file is on another computer, verify that you are connected to the network. If you typed a path, verify that it is correct. If the problem persists, the server might not be available."

Here is my html line, see anything obvious?

td a href="trackday.wmv" img src="trackday.jpg-thumb.jpg" border="3" /a /td

(I had to remove all the < characters around the tags so it would display properly in this post)

My browser is Firefox.

Thanks
BG

__________________
'84 Carrera Coupe

Last edited by BGCarrera32; 10-22-2008 at 06:17 PM..
Old 10-22-2008, 06:15 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)
The Unsettler
 
stomachmonkey's Avatar
 
Join Date: Dec 2002
Location: Lantanna TX
Posts: 23,885
Send a message via AIM to stomachmonkey
Try a specific vs relative url.

http://whateveryoursite.com/whateverfolder/trackday.wmv would be specific

that img src tag looks funky, double file extensions?

Post the full link, easier to help.
__________________
"I want my two dollars"
"Goodbye and thanks for the fish"
"Proud Member and Supporter of the YWL"
"Brandon Won"
Old 10-22-2008, 07:22 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)
Registered
 
87coupe's Avatar
 
Join Date: Apr 2005
Location: San Jose, CA
Posts: 1,247
Garage
Use the [ html ] [ /html ] tags to put code in your post. Like this..
HTML Code:
<td> <a href="trackday.wmv"><img src="thumb.jpg" border="3"></a></td>
Which BTW, is probably the string your looking for. That is, if you have a image called "thumb.jpg" in the webroot that you want to be the link to the "trackday.wmv" video file also residing in the webroot.
__________________
ßrandon
Old 10-22-2008, 07:37 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #3 (permalink)
User
 
ikarcuaso's Avatar
 
Join Date: Feb 2006
Location: Oakland
Posts: 940
Based on the error message, your HTML seems correct. This is a WMP error on your client.

http://www.microsoft.com/windows/windowsmedia/player/9series/playererrors.aspx

If your link was wrong (invalid path/file in your href attribute), you'd get a "file not found" error instead.
__________________
82 Targa
Old 10-22-2008, 08:33 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #4 (permalink)
Slackerous Maximus
 
HardDrive's Avatar
 
Join Date: Apr 2005
Location: Columbus, OH
Posts: 18,164
Quote:
Originally Posted by stomachmonkey View Post
Try a specific vs relative url.
What he said.

If the .wmv file is in a different folder(or on a different server), you need to specify the path.
__________________
2022 Royal Enfield Interceptor.
2012 Harley Davidson Road King
2014 Triumph Bonneville T100.
2014 Cayman S, PDK.
Mercedes E350 family truckster.
Old 10-22-2008, 10:36 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #5 (permalink)
Certified Pre-Owned
 
BGCarrera32's Avatar
 
Join Date: Aug 2002
Location: Nanny State
Posts: 3,132
Quote:
Originally Posted by ikarcuaso View Post
Based on the error message, your HTML seems correct. This is a WMP error on your client.

http://www.microsoft.com/windows/windowsmedia/player/9series/playererrors.aspx

If your link was wrong (invalid path/file in your href attribute), you'd get a "file not found" error instead.
That's what I'm thinking...my code has the html tags as other have posted, I just didn't know how to post it here without screwing up the forum post. All of my files are in 1 directory on my PC, I haven't uploaded to the web yet.

When I chase this a little deeper in Windows Media Player it says:

To enable all network protocols
On the Tools menu, click Options, and then click the Network tab.
In the Streaming protocols area, select all the protocol check boxes.

And I do a tools>options>...and find no "Network tab"

The files are all right there together in one folder on my desktop. I can go into the folder and double click my trackday.wmv video and it launches and plays fine.
__________________
'84 Carrera Coupe
Old 10-23-2008, 06:40 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #6 (permalink)
 
User
 
ikarcuaso's Avatar
 
Join Date: Feb 2006
Location: Oakland
Posts: 940
Instead of pointing your link directly to the .wmv file, have it point to another .htm file (called trackdayvideo.htm in this example) that opens in a pop up:

HTML Code:
<a href="trackdayvideo.htm" onClick="window.open('trackdayvideo.htm','trackdayvideo','location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,height=445,width=560'); return false;">
<img src="trackday.jpg-thumb.jpg" border="0">
</a>
Then, put this code in your new, pop-up .htm file:

HTML Code:
<object id="MediaPlayer" width=500 height=400 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab...">
<param name="filename" value="trackday.wmv">
<param name="Showcontrols" value="True">
<param name="autoStart" value="True">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="trackday.wmv" name="MediaPlayer" width=500 height=400></embed>
</object>
This will embed your movie in the pop-up window. Edit the height and width attribute values as needed.
__________________
82 Targa
Old 10-23-2008, 10:40 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #7 (permalink)
Certified Pre-Owned
 
BGCarrera32's Avatar
 
Join Date: Aug 2002
Location: Nanny State
Posts: 3,132
Thanks...the video not launching ended up being my folder name was "web class" and switching it to "web_class" did the trick (and switching it to match in my code.)

Oddly enough, my site works fine in Firefox, and then won't display my thumbnails in IE 6. My IT guy said that IE really needs to pull the file from a webserver...how do ever check your work locally without running a webserver program on your PC? Seems kinda silly...
__________________
'84 Carrera Coupe
Old 10-23-2008, 11:50 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #8 (permalink)
The Unsettler
 
stomachmonkey's Avatar
 
Join Date: Dec 2002
Location: Lantanna TX
Posts: 23,885
Send a message via AIM to stomachmonkey
Quote:
Originally Posted by BGCarrera32 View Post
...how do ever check your work locally without running a webserver program on your PC? Seems kinda silly...
Not really.

A webserver is a specific suite of software that is intended to serve web pages.

Why would you want to evaluate your work outside of the environment that it is created for?

Look at and get MAMP.

It's free.

__________________
"I want my two dollars"
"Goodbye and thanks for the fish"
"Proud Member and Supporter of the YWL"
"Brandon Won"
Old 10-23-2008, 12:16 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #9 (permalink)
Reply


 


All times are GMT -8. The time now is 03:38 PM.


 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website -    DMCA Registered Agent Contact Page
 

DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.