home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
Chip_2003-01_cd1.bin
/
zkuste
/
wmakeup
/
download
/
deepbluesomething.wmz
/
DBS.js
< prev
next >
Wrap
Text File
|
2001-05-06
|
4KB
|
189 lines
var playlistIsOpen = false;
var VisScreenIsOpen = false;
var vidIsPlaying = false;
var eqPane = 0;
var vidPane = 1;
var visPane = 2;
var currentPane = 0;
var vidIsRunning = false;
function Init()
{
PlaylistFrame.setColumnResizeMode(0, "Stretches");
PlaylistFrame.setColumnResizeMode(1, "AutoSizeData");
vidIsPlaying = (player.OpenState == osMediaOpen) && (player.currentMedia.ImageSourceWidth>0);
vidIsPlaying ? startVideo() : endVideo();
}
function onPlayStateChange() {
vidIsPlaying = (player.OpenState == osMediaOpen) && (player.currentMedia.ImageSourceWidth>0);
vidIsPlaying ? startVideo() : endVideo();
updateMetadata();
}
function determinePlaylist() {
if (playlistIsOpen) {
plsub.visible = true;
playlistIsOpen = false;
} else {
plsub.visible = false;
playlistIsOpen = true;
}
}
function determineVisScreen() {
if (VisScreenIsOpen) {
visual.visible = true;
} else {
visual.visible = false;
}
}
function ShowPlaylist() {
VolumeSub.visible = false;
PlaylistDrawer.visible = true;
plsub.visible = true;
EqualizerFrame.visible = false;
visual.visible = false;
Cover.visible = false;
bubblesub.visible = false;
}
function ShowVis() {
if (vidIsPlaying) {
VolumeSub.visible = false;
EqualizerFrame.visible = false;
visual.visible = true;
vid.visible = true;
Cover.visible = false;
plsub.visible = false;
visEffects.visible = false;
bubblesub.visible = false;
} else {
Cover.visible = false;
EqualizerFrame.visible = false;
VolumeSub.visible = false;
plsub.visible = false;
visEffects.visible = true;
visual.visible = true;
vid.visible = false;
bubblesub.visible = false;
}
}
function HideAll() {
bubblesub.visible = true;
VolumeSub.visible = false;
Cover.visible = false;
plsub.visible = false;
visual.visible = false;
EqualizerFrame.visible = false;
visEffects.visible = false;
}
function ShowEQ()
{
VolumeSub.visible = false;
Cover.visible = false;
plsub.visible = false;
EqualizerFrame.visible = true;
visual.visible = false;
visEffects.visible = false;
bubblesub.visible = false;
}
function ShowVol()
{
VolumeSub.visible = true;
Cover.visible = false;
plsub.visible = false;
EqualizerFrame.visible = false;
visual.visible = false;
visEffects.visible = false;
bubblesub.visible = false;
}
function ShowCover()
{
VolumeSub.visible = false;
Coveranim.down = true;
Cover.visible = true;
plsub.visible = false;
EqualizerFrame.visible = false;
visual.visible = false;
bubblesub.visible = false;
visEffects.visible = false;
vid.visible = false;
}
function startVideo() {
VolumeSub.visible = false;
Cover.visible = false;
plsub.visible = false;
EqualizerFrame.visible = false;
bubbles.visible = false;
vidIsPlaying = true;
visual.visible = true;
vid.visible = true;
visEffects.visible = false;
}
function endVideo() {
vidIsPlaying = false;
vid.visible = false;
visEffects.visible = false;
visual.visible = false;
}
function getMetaData(mediaobject)
{
var temptext="metadata\r----------";
var attributename;
for (var i=0; i<mediaobject.attributeCount;i++)
{
attributename=mediaobject.getAttributeName(i);
temptext+="\r" + attributename + ": " +
mediaobject.getItemInfo(attributename);
}
return temptext;
}
function UpdateMetadata()
{
artist.value =
player.currentmedia.getiteminfo("author");
}