WMP skins??
Posted: Fri Jul 08, 2005 6:05 pm
Ok me and pyr are haveing an argument about if i could code the iceteks skin (when it's done) iin to a WMS skin and so i have been looking around and it seems that yes it can be done but one thing i need to know is...
How do i read this?
How do i read this?
Code: Select all
/*
©2000 Microsoft Corporation. All rights reserved.
*/
var eqPane = 0;
var plPane = 1;
var currentPane = 0;
var vidIsRunning = false;
var bigHeight = 311;
var tinyHeight = 161;
function OnLoad()
{
pl.setColumnResizeMode(0, "Stretches");
pl.setColumnResizeMode(1, "AutoSizeData");
visEffects.currentEffectType = mediacenter.effectType;
visEffects.currentPreset = mediacenter.effectPreset;
view.height = bigHeight;
OnOpenStateChange();
}
function OnClose()
{
mediacenter.effectType = visEffects.currentEffectType;
mediacenter.effectPreset = visEffects.currentPreset;
}
function OnOpenStateChange()
{
if(player.OpenState == osMediaOpen)
{
UpdateMetadata();
vidIsRunning =
(player.currentMedia.ImageSourceWidth>0);
if(vidIsRunning)
{
StartVideo();
}
}
}
function OnKeyDown()
{
if(event.keycode==38 &&
!event.shiftKey)
{
player.settings.volume+=5;
}
else if(event.keycode==40 &&
!event.shiftKey)
{
player.settings.volume-=5;
}
}
function StartVideo()
{
visEffects.visible = false;
vid.visible = sBig.visible;
}
function EndVideo()
{
visEffects.visible = sBig.visible;
vid.visible = false;
}
function UpdateMetadata()
{
metadata.value =
player.currentmedia.getiteminfo("author");
if(metadata.value != "")
{
metadata.value += " -- ";
}
metadata.value += player.currentmedia.name;
tinyMetadata.value = metadata.value;
metadata.scrolling = tinyMetadata.scrolling =
metadata.textWidth>metadata.width;
}
function SetPl(showPl)
{
pl.visible = showPl;
sAudio.visible = !showPl;
}
function SetSize(bigSize)
{
view.height = bigSize ? bigHeight : tinyHeight;
sBig.visible = bigSize;
sTiny.visible = !bigSize;
vid.visible = vidIsRunning && bigSize;
}
function AdjustEQ()
{
eq.gainLevel1 = bass.value;
eq.gainLevel2 = (8*bass.value + treble.value)/9;
eq.gainLevel3 = (7*bass.value + 2*treble.value)/9;
eq.gainLevel4 = (6*bass.value + 3*treble.value)/9;
eq.gainLevel5 = (5*bass.value + 4*treble.value)/9;
eq.gainLevel6 = (4*bass.value + 5*treble.value)/9;
eq.gainLevel7 = (3*bass.value + 6*treble.value)/9;
eq.gainLevel8 = (2*bass.value + 7*treble.value)/9;
eq.gainLevel9 = ( bass.value + 8*treble.value)/9;
eq.gainLevel10 = treble.value;
}
[code]
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3470, old post ID:28019[/size][/color]