WMP - Can I stop video from automatically downloading?
Good evening all,
I'm using Windows Media Player to play video on my website. Each user's profile can have 25 mb worth of video. When their profile gets loaded, all of the videos are displayed and doing such, downloads them all. As you can see, this could seriously degrade the performance by causing heavy traffic.
I'm using the class for v7+. I couldn't find a list for the available parameters for that version. I found an earlier one http://www.w3schools.com/media/media_playerref.asp but didn't see anything I'm looking for.
Am I better off creating a link that opens each video in a separate browser window so they're dowloaded one at a time? I would really like if I could have it download the video only when the user clicks on it exactly like YouTube.
I’m not exactly sure of the layout of your page but do you mean that you have several Media Players going on the same page at the same time? And are they all set to:
<param name="autostart" value="true" />
That is, start to play as soon as the page loads?
If that is the case, there are a couple things I would suggest. First:
<param name="autostart" value="false" />
Have the user click the play button for the video they want to watch.
Second, put each viewer on a separate page to avoid have several players going at the same time.
Third, consider using a playlist which allows the user to choose one video out of a list. Then when a second one is selected, the first one stops. This can be done with an xml file in Flash players and I’m pretty sure the same can be accomplished with the Windows Media Player.
Here’s an example of using a playlist: http://www.lynnjohnson.citradingcard...eo_player.html
Here’s an example of separate pages used to hold each persons interview: http://www.citradingcards.com/w_ski/.../team_usa.html
The pages do not open in a separate browser window, but open in the parent window (_blank or _parent). That is if you want people to stay on your site.
If you wanted a small pop-up to display their profile, you could use a small window something like this: http://www.olymarine.com/
Then scroll down to the Hydroplane races. When clicked, a small pop-up window will display the video while the main site is still visible in the background. That way viewers are not taken away from your site. This was done using a small snippet of JavaScript.
Sorry for the delay. Been very hectic around here lately.
The layout of the page will basically have a table that displays:
video1
video2
video3
All are Windows Media players. My <param name="autostart" value="true" /> value is set to false. Which works fine, they don't automatically play but they still download.
Thanks greatly for the links! Going to have a browse through them and see what my best option is. I'm leaning towards the JS one, sounds well smart
If you “turn off” autostart, your files should not be downloading. If they are…there is a problem. Be sure that you also change the <embed> parameters.
Here’s an example of the code used for a typical Windows Media Player. It includes both an <object> tag for Internet Explorer and an <embed> tag for Firefox. Both need to be set to “false”.
The file "videos/06_SSM_Lighter_Side.wmv" does not start to download until you click the play button.
Best wishes,
Eye for Video www.cidigitalmedia.com
If you “turn off” autostart, your files should not be downloading. If they are…there is a problem. Be sure that you also change the <embed> parameters.
Here’s an example of the code used for a typical Windows Media Player. It includes both an <object> tag for Internet Explorer and an <embed> tag for Firefox. Both need to be set to “false”.
The file "videos/06_SSM_Lighter_Side.wmv" does not start to download until you click the play button.
Best wishes,
Eye for Video www.cidigitalmedia.com
Hi mate,
Cheers for that! One question, in your initial reference to the video file within the Embed tag, you've got '../../../web development/videos/06_SSM_Lighter_Side.wmv' but other references to the file have got /videos/06_SSM_Lighter_Side.wmv. Just curious
Sorry for the confusion. I had a number of videos set up at "videos/06_SSM_Lighter_Side.wmv, and then pulled one for some testing to see if they download even if the autostart is set to false. I did this at "../../../web development/videos/06_SSM_Lighter_Side.wmv" And then a gremlin snuck in and put them together in the same code.....ahhhh..or somethin' like that.
Thanks for pointing that out. The correct address would be just one or the other, not two different addresses.
Thanks for noticing,
Eye for Video www.cidigitalmedia.com
Hi mate,
Sounds like you just might be from "Down Under"?? Or am I from "Down Under" to you??
I'd love to travel and visit around the world sometime... especially..."Down Under".
Well, lets see, there must be some technical reason for this ... I guess. After all, our coding is not just for the sake of coding but rather to be the invisible bridge to another end, right?
Ok, here is a few videos I created for a few profiles... I guess you could say. http://www.citradingcards.com/w_ski/...australia.html
In '06 the World Championships were here in Washington state. In '09, they will be in New Zealand... that's sort of close isn't it?
Eye for Video www.cidigitalmedia.com
Hi mate,
Sounds like you just might be from "Down Under"?? Or am I from "Down Under" to you??
I'd love to travel and visit around the world sometime... especially..."Down Under".
Well, lets see, there must be some technical reason for this ... I guess. After all, our coding is not just for the sake of coding but rather to be the invisible bridge to another end, right?
Ok, here is a few videos I created for a few profiles... I guess you could say. http://www.citradingcards.com/w_ski/...australia.html
In '06 the World Championships were here in Washington state. In '09, they will be in New Zealand... that's sort of close isn't it?
Eye for Video www.cidigitalmedia.com
Hi mate,
Heh, I'm from London. We've addopted 'no worries' into our dialect the past few years. It's perhaps due to the influx of Aussies we've got living over here. Do visit the place. It's absolutely brilliant! I've been a few times and Melbourne is by far the funkiest city I've ever been to (aside from New York of course). There's a really good vibe there.
Can I pick your brains mate? I'm looking at some other code I've stumbled upon and it's basically down to the FF v IE. The embeded scr tag works a treat. But, I've got:
Sorry but need to adjust my question slightly. I added the embed scr tag and for some reason, it's not playing within the telly as is if I leave it out. My website is grassroots.bosman.co.uk so....
The embed src brings a window up exactly like a windows media player which I don't want. Do you know how I can make it appear within the player as the code currently is (without the embed src).
Bookmarks