Log in

View Full Version : video buffering for a long time



jiam1
04-14-2007, 02:01 PM
I use the following code to embed videos on my site.


<OBJECT id=NSPlay classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95
align=middle width=360 height=320>
<PARAM NAME="fileName" VALUE=" video.wmv">
<PARAM NAME="autoStart" VALUE="0">
<PARAM NAME="BufferingTime" value="0"><PARAM NAME="CaptioningID" value="">
<PARAM NAME="ShowControls" value="1"><PARAM NAME="ShowAudioControls" value="1"><PARAM NAME="ShowGotoBar" value="0"><PARAM NAME="ShowPositionControls" value="1"><PARAM NAME="ShowStatusBar" value="-1">
<PARAM NAME="EnableContextMenu" value="0"></OBJECT>

Are the above codes meant streaming video?

Quite a number of my friends claimed that they have difficulty accessing the video, being on the buffering mode for a long time. They have no difficulty accessing online videos provided by TV stations worldwide.

Will the "buffering" problem be solved if I use "mms" format instead of http?

Or is it better to convert the wmv file to swf and put the video on the site to one that is similar to this site ==>http://www.easywebvideo.com/

I would appreciate if someone could shed some light.

thetestingsite
04-15-2007, 01:51 AM
Either way (whether you convert it to Flash or not), it will still be accessing the information from the server. Quick question though, is the "video.wmv" file on the server (and is it accessible if you go to it in the address bar - http://example.com/video.wmv)? If not, then that is the reason why it is staying on the "buffering message".

Personally, I would convert it to swf and play like that.
Hope this helps.

jiam1
04-15-2007, 07:13 AM
Thanks a lot for your inputs.


Quick question though, is the "video.wmv" file on the server (and is it accessible if you go to it in the address bar - http://example.com/video.wmv)?

On the server? Sorry, I didn't quite understand what you meant.
The video is accessible on http://example.com/video_site/video1.wmv
Is this a cause for the buffering problem?

Yes, I like to convert the wmv video to swf but at a loss :confused: on how to get the flash player on the site with the play/stop/pause/sound control button such as the one below:
http://ninemsn.video.msn.com/v/en-au/v.htm?t=s29&_cobr=optus

Would appreciate if someone could help. Thank you

Twey
04-15-2007, 10:41 AM
Yes, I like to convert the wmv video to swfYou probably wouldn't do that... the usual method is to convert the video to a Flash video (FLV), then play it with a separate Flash movie. We've lost our Flash expert for the moment, though :-\

jiam1
04-15-2007, 02:37 PM
After googling to find what is the difference between swf and flv, I realise that flv is more suitable as most of my videos are longer than 3min.

I found the code to embed the flash player:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" height="200" width="200"> <br /> <param name="salign" value="lt"> <param name="quality" value="high"> <param name="scale" value="noscale"> <param name="wmode" value="transparent"> <param name="movie" value="http://geekfile.googlepages.com/flvplay.swf"> <param name="FlashVars" value="&streamName=http://video.tv18online.com.edgesuite.net/cnnibn/flvstore/08_2006/chennai_bloggers.flv&amp;skinName=http://geekfile.googlepages.com/flvskin&autoPlay=false&amp;autoRewind=true"> <embed flashvars="&streamName=http://video.tv18online.com.edgesuite.net/cnnibn/flvstore/08_2006/chennai_bloggers.flv&amp;autoPlay=false&autoRewind=true&amp;skinName=http://geekfile.googlepages.com/flvskin" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://geekfile.googlepages.com/flvplay.swf" wmode="transparent" height="200" width="200"></embed></object>

I tried replacing "http://video.tv18online.com.edgesuite.net/cnnibn/flvstore/08_2006/chennai_bloggers.flv" of the above with the URL of my flv file but the same CNN flash video keep appearing instead of my own flash video.

Appreciate if someone could help.

Twey
04-15-2007, 03:40 PM
In this code, you have two different URLs (that we're interested in, anyway). One is to the FLV video, and the other is to the SWF file that's playing the video. To clarify, the Flash plugin plays the movie player, which plays the video. You've got your video, but you need a player, which is the bit you'd need our Flash expert for. Perhaps you should try posting in a Flash forum elsewhere?

jiam1
04-15-2007, 03:53 PM
Thanks a lot, Twey. I didn't know it's so complicated!

I managed to locate the source of the code to embed the flash player:

http://labnol.blogspot.com/2006/08/how-to-embed-flv-flash-videos-in-your.html

In the article, the author mentioned
just copy-paste the following HTML snippet in your blog template and replace the height, width and streamName parameters with real values and I thought it's very simple!