home *** CD-ROM | disk | FTP | other *** search
- /*
- ⌐2000 Microsoft Corporation. All rights reserved.
- */
-
- function OnOpenStateChange()
- {
- if(player.OpenState == osMediaOpen)
- {
- UpdateMetadata();
- }
- }
- function toggleEfx()
- {
- enableEffects(!isEfx());
- }
- function UpdateMetadata()
- {
- metadata.value =
- player.currentmedia.getiteminfo("author");
- metadata1.value =
- player.currentmedia.getiteminfo("author");
- var temp = player.currentmedia.name;
- if(temp != "")
- {
- if(metadata.value != "")
- {
- metadata.value += " -- ";
- metadata1.value += " -- ";
- }
- metadata.value += temp;
- metadata1.value += temp;
- }
- metadata.scrolling = metadata.textWidth>metadata.width;
- metadata1.scrolling = metadata1.textWidth>metadata1.width;
- }
- function OnAddMediaToPlaylist( )
- {
- var fileselected = theme.openDialog( "FILE_OPEN", "FILES_ALLMEDIA" );
-
- if( fileselected.length > 0 )
- {
- cMedia = player.mediaCollection.add( fileselected );
- playlist.playlist.appendItem( cMedia );
-
- }
- }
- function StartVideo()
- {
- vidscreenIsPlaying = true;
- {
-
- myEffects.visible = false;
- vidscreen.visible = true;
- }
- }
- function EndVideo()
- {
- myEffects.visible = true;
- vidscreenIsPlaying = false;
- vidscreen.visible = false;
- }
-
- function togglesize()
- {
- if (bigplayer.visible)
- {
- bigplayer.visible=false;
- smallplayer.visible=true;
-
- }
- else
- {
- bigplayer.visible=true;
- smallplayer.visible=false;
-
- }
- }
-
-
-