home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Plus! (NZ) 2000 October
/
PCWORLDPLUS_OCTO.BIN
/
review
/
wmp7.exe
/
RCDATA
/
CABINET
/
wmploc.DLL
/
256
/
4003
< prev
Wrap
Text (UTF-16)
|
2000-06-26
|
3KB
|
61 lines
// Windows Media Player - Copyright 2000 Microsoft Corporation.
function InitVisualizations()
{
if (osMediaOpen == player.OpenState)
{
AutoSize();
if (player.currentMedia.ImageSourceWidth > 0)
{
myeffect.visible=false;
video1.visible=true;
}
else
{
video1.visible=false;
myeffect.visible=mediacenter.showEffects;
}
}
else
{
video1.visible=false;
myeffect.visible=false;
}
}
function OnPlayStateChangeViz()
{
InitVisualizations();
}
function OnOpenStateChangeViz()
{
InitVisualizations();
}
function AutoSize()
{
if (player.currentMedia.ImageSourceWidth > 0)
{
// Resize layout to match the video size
view.height = player.currentMedia.ImageSourceHeight + svTransport.height;
// clip to the transport controls width
if ((0 == svTransport.width) || (player.currentMedia.ImageSourceWidth > svLayoutSize.width))
{
view.width = player.currentMedia.ImageSourceWidth;
}
else
{
view.width = svLayoutSize.width;
}
}
else
{
// Resize layout to original size
view.width = svLayoutSize.width;
view.height = svLayoutSize.height;
}
}