home *** CD-ROM | disk | FTP | other *** search
- function Init()
- {
- OnOpenStateChange(player.openState);
- UpdateVizTitle();
- if(player.dvd.isAvailable('dvd'))
- {
- UpdateDVDControls();
- }
- }
-
- function OnOpenStateChange(NewState)
- {
- if(NewState==osMediaOpen)
- {
- txtVizTitle.visible=player.currentMedia.imageSourceHeight==0;
- UpdateDVDControls();
- }
- }
-
- function PreviousDisplay()
- {
- mediacenter.vizRequest = VR_PRESET_PREV;
- }
-
- function NextDisplay()
- {
- mediacenter.vizRequest = VR_PRESET_NEXT;
- }
-
-
- function UpdateVizTitle()
- {
- try
- {
- var viewName = helper.effectFriendlyName( mediacenter.effectType );
- var presetName = helper.effectPresetName( mediacenter.effectType, mediacenter.effectPreset );
- if (""!=presetName)
- {
- txtVizTitle.value = viewName + " : " + presetName;
- }
- else
- {
- txtVizTitle.value = viewName;
- }
- }
- catch(err){}
- }
-
-
- function PlayingDVD()
- {
- return ( (player.currentPlaylist.count>0) && (player.currentPlaylist.item(0).sourceURL.indexOf("wmpdvd:")==0));
- }
-
- function UpdateDVDControls()
- {
- if (PlayingDVD())
- {
- txtVizTitle.visible = false;
- btnDVDMenu.visible = ( ("videoManagerMenu" != player.dvd.domain) && ("videoTitleSetMenu" != player.dvd.domain) );
- btnDVDResume.visible = !btnDVDMenu.visible;
- }
- }
-
-