home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 September (Special)
/
Chip-Special_2002-09_Digitalni-Video.bin
/
servis
/
wm9
/
mpsetupXP.exe
/
RCDATA
/
CABINET
/
wmploc.DLL
/
256
/
4013
< prev
next >
Wrap
Text File
|
2002-08-19
|
3KB
|
138 lines
// Windows Media Player - Copyright 2000 Microsoft Corporation.
//<script>
var g_strPlayImage="";
var g_strPlayHover="";
var g_strPlayDown="";
var g_strPauseHover="";
var g_strPauseDown="";
var g_tracktimeTextWidth=0;
var g_SetPlayPauseFocus=false;
function OnOpenStateChange(NewState)
{
if(NewState==osMediaOpen)
{
txtVizTitle.visible=player.currentMedia.imageSourceHeight==0;
}
}
function PreviousDisplay()
{
mediacenter.previousVizRequest = true;
}
function NextDisplay()
{
mediacenter.nextVizRequest = true;
}
function LayoutMarquee()
{
g_tracktimeTextWidth = tracktime.textwidth;
var margin=parseInt(theme.loadString("res://wmploc/RT_STRING/#1272"));
tracktime.horizontalAlignment='left';
tracktime.left = svMarquee.width - tracktime.textwidth;
tracktime.horizontalAlignment='right';
try
{
metadata.width = svMarquee.width - tracktime.textwidth - margin - metadata.left;
}
catch(err){}
}
function OnFFWD()
{
if (player.PlayState == psScanForward)
{
player.controls.play();
}
else
{
player.controls.FastForward();
}
}
function OnREW()
{
if (player.PlayState == psScanReverse)
{
player.controls.play();
}
else
{
player.controls.FastReverse();
}
}
function volumeOnChange()
{
player.settings.mute=false;
}
function muteOnClick()
{
player.settings.mute = (player.settings.mute == true) ? false : true;
}
//=====================================================
// SAMI
//=====================================================
function CaptionsView_OnOpenStateChangeEvent(NewState)
{
switch (NewState)
{
case osMediaChanging:
ClearSamiDisplay();
break;
}
}
function InitSamiDisplay()
{
Browser1.loadSpecialPage("SAMI");
}
function ClearSamiDisplay()
{
handleScriptCommand("Text", "");
}
function handleScriptCommand(scType, Param)
{
var Document = 0;
var ElemCollection = 0;
var Element = 0;
scType = scType.toUpperCase();
if(scType == "TEXT" || scType == "<SYNC" || scType == "CAPTION")
{
Browser1.showSAMIText(Param);
}
}
function SetCaptions(visible)
{
Browser1.height = visible ? 85 : 0;
}
function UpdateVizTitle()
{
var viewName = helper.effectFriendlyName( mediacenter.effectType );
var presetName = helper.effectPresetName( mediacenter.effectType, mediacenter.effectPreset );
if (""!=presetName)
{
txtVizTitle.value = viewName + " : " + presetName;
}
else
{
txtVizTitle.value = viewName;
}
}