Click to See Complete Forum and Search --> : Video Player Drags and/or Follws me around on my site


zxfactor
06-16-2008, 09:34 PM
My video player follows me around or my site. I think it due to it rendering..
my site is an efic site thats on a php platform.. and at times the same thing happens on my message board site. Could you look at my code and see where I might be creating the error or is it as simple as I need to use streaming .. or if you have better coding, do you mind sharing? thanks

<object id="MediaPlayer" width=181 height=200 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#Version=6,4,7,1112">
<param name="filename" value="http://kreativefuzion.com/valentcentral/forumvideos/almost_.wmv">
<param name="Showcontrols" value="True">
<param name="autoStart" value="False">

<embed type="application/x-mplayer2" src="http://kreativefuzion.com/valentcentral/forumvideos/almost_.wmv" name="MediaPlayer" width=181 height=200></embed>

</object>


<PARAM NAME="enabled" VALUE="True">

<PARAM NAME="AutoStart" VALUE="False">

<PARAM name="PlayCount" value="3">

<PARAM name="Volume" value="50">

<PARAM NAME="balance" VALUE="0">

<PARAM NAME="Rate" VALUE="1.0">

<PARAM NAME="Mute" VALUE="False">

<PARAM NAME="fullScreen" VALUE="True">

<PARAM name="uiMode" value="full">

Eye for Video
06-16-2008, 11:38 PM
What do you mean that it follows you around? Is it tied to the mouse movement or is the video player just not completely downloading untill you get to the next page, then it finishes downloading?
Eye for Video
www.cidigitalmedia.com

zxfactor
06-16-2008, 11:42 PM
What do you mean that it follows you around? Is it tied to the mouse movement or is the video player just not completely downloading untill you get to the next page, then it finishes downloading?
Eye for Video
www.cidigitalmedia.com


meaning when I scroll around on the site.. i.e. moving the scroll bar up and down the player moves.. it loses it shape

Eye for Video
06-17-2008, 11:22 AM
It has to do with the very large video file being downloaded to the small video player. The video player display has trouble rebuilding fast enough as you scroll up and down. Render the video with video editing software to a much smaller size (your display is 181 wide) and a much smaller bandwith, 150kbps or so.
More discussion at:
http://www.webdeveloper.com/forum/showthread.php?t=183855
Good luck,
Eye for Video
www.cidigitalmedia.com

zxfactor
06-18-2008, 11:09 PM
Everyone.. thanks for your help.. increasing the size helped somewhat, but it's still a problem. Does anyone have code for a flash player?

Thanks

Eye for Video
06-18-2008, 11:59 PM
Perhaps your best solution would be to leave the display size alone and decrease the size and bitrate of the video. The problem is your computer has to rebuild the video box every few milliseconds as you scroll. Give it less to do, keep the video (display) size small, bitrate low. The rebuilding of the video display box is also affected by the speed of your computer, assuming your Internet download speed is about twice the required bitrate of the movie. So for example a video displaying at 800kbps should have at least a 1.5MB connection, while a video displaying at 150kbps could get by with a 256 DSL line. Even then, scrolling can be a problem.
The rest is up to your machine. Test it on a couple of faster machines for comparison.
Here is code for a Flash player but you still need to acquire the .swf file and recode the correct path to it. This .swf file is actually the player:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="530" height="280" id="cidm_player_320" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="cidm_player_320.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<embed src="cidm_player_320.swf" quality="high" width="530" height="280" name="cidm_player_320" align="middle" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

There are also other ways to code this including using SWFObject, which I strongly recommend, but start with the simple code first.
Best of Luck,
Eye for Video
www.cidigitalmedia.com