Results 1 to 7 of 7

Thread: video buffering for a long time

  1. #1
    Join Date
    Mar 2007
    Posts
    27
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default video buffering for a long time

    I use the following code to embed videos on my site.

    Code:
     <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.
    Last edited by jiam1; 04-14-2007 at 02:47 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Mar 2007
    Posts
    27
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    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 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...29&_cobr=optus

    Would appreciate if someone could help. Thank you

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, I like to convert the wmv video to swf
    You 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 :-\
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2007
    Posts
    27
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    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:
    Code:
    <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.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Mar 2007
    Posts
    27
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    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/h...s-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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •