On Tue, 16 Feb 2010 14:51:01 -0800, JJBaseball
Post by JJBaseballI am displaying WMP in my webpage. What is the minimum pixel width I can
set the player to?
There is no minimum width, although the player will display a 1 pixel
bar on the left, even if you set the width to zero. You can remove
this by setting CSS style="display: none" on the player object.
You'll still get audio even if the player UI is hidden using this
method.
Reducing the object width with uimode="full" or uimode="mini" will
gradually reduce the available space for controls (the UI part).
http://msdn.microsoft.com/en-us/library/dd564089%28VS.85%29.aspx
The practical minimum width to display useful controls (play, stop,
Mute) with no position slider, is 100 pixels on WMP12 / Win7, this is
slightly variable down to WMP7 but it's fairly consistent.
The minimum height to display the control bar is 40 pixels for all
versions WMP7-12 again with uimode="mini" or uimode="full" to show the
control bar for user interaction.
If you do this, on WMP12 you might want to add CSS style="border-top:
1px solid #ccc" as the top border isn't solid and it looks slightly as
if the player was 'clipped' (but it just lacks a solid line at the top
of the control bar chrome)
Post by JJBaseballHow can I stop the player from displaying the author name and "PlaylistN"?
You cannot remove the status line after WMP version 6.4 (from about
1999). However, you can set uiMode="none", which will display no
player controls - the status display is hidden in this case and only
the video is shown.
As you'll now have no playback controls, you will need to add those
back using some basic javascript and images with rollovers for at
least Play/Stop and probably volume/mute.
This article is pretty old but the scripting model hasn't changed
since WMP7 (WMP9 is used in the article)
http://www.microsoft.com/windows/windowsmedia/howto/articles/htmlviewsupport.aspx
There, they've used basic form BUTTON elements, but adding image /
rollover, and state changes with a little javascript will usually
simulate the control reasonably.
Have you looked at Silverlight yet ? There are a lot more
customisation options, because the player is literally just thew
playback window, so you can then setup XAML to create buttons, and
script those using C# or javascript in the control.
Examples might be http://silverlight30.codeplex.com/ ,
http://www.devx.com/dotnet/Article/37094 and
http://www.codeproject.com/KB/silverlight/SilverLightMediaPlayer.aspx
HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2010
http://mvp.support.microsoft.com/mvpfaqs