0% found this document useful (0 votes)
88 views

Mediaplayer11 Text Resources

The document defines constants for open and play states in Windows Media Player. It also defines global variables used for elements in the player interface like volume, mute controls and current track information. Functions are included to initialize and update the visualizations, preview pane and fullscreen bottom skin based on state changes.

Uploaded by

Robert Schumann
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Mediaplayer11 Text Resources

The document defines constants for open and play states in Windows Media Player. It also defines global variables used for elements in the player interface like volume, mute controls and current track information. Functions are included to initialize and update the visualizations, preview pane and fullscreen bottom skin based on state changes.

Uploaded by

Robert Schumann
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

INFORMATIONAL: Friday, September 08, 2006 18:20:27 INFORMATIONAL: vwPlayer - 132 - // WMP Open and Play states // These

constants must alway match with the ones defined in wmpcore.h // Open states var var var var var var var var var var var var var var var var var var var var var osUndefined = 0; osPlaylistChanging = 1; osPlaylistLocating = 2; osPlaylistConnecting = 3; osPlaylistLoading = 4; osPlaylistOpening = 5; osPlaylistOpenNoMedia = 6; osPlaylistChanged = 7; osMediaChanging = 8; osMediaLocating = 9; osMediaConnecting = 10; osMediaLoading = 11; osMediaOpening = 12; osMediaOpen = 13; osBeginCodecAcquisition = 14; osEndCodecAcquisition = 15; osBeginLicenseAcquisition= 16; osEndLicenseAcquisition = 17; osBeginIndividualization = 18; osEndIndividualization = 19; osMediaWaiting = 20;

// Play States var psUndefined = 0; var psStopped = 1; var psPaused = 2; var psPlaying INFORMATIONAL: vwPlayer - 134 - //<script language="jscript"> //var g_kSMALL_FONTFACE = theme.loadString("res://wmploc/RT_STRING/#1888"); var g_kSMALL_FONTSIZE = parseInt(theme.loadString("res://wmploc/RT_STRING/#1889" )); //var g_kSMALL_FONTSTYLE= theme.loadString("res://wmploc/RT_STRING/#1890"); //this is used in the fullscreen UI //var g_kMEDIUM_FONTFACE = theme.loadString("res://wmploc/RT_STRING/#1891"); var g_kMEDIUM_FONTSIZE = parseInt(theme.loadString("res://wmploc/RT_STRING/#189 2")); //var g_kMEDIUM_FONTSTYLE = theme.loadString("res://wmploc/RT_STRING/#1893"); INFORMATIONAL: vwPlayer - 136 - // Windows Media Player - Copyright 2000 Microso ft Corporation. //<script> // vizRequest consts var var var var var VR_PRESET_PREV VR_PRESET_NEXT VR_VIZ_PREV VR_VIZ_NEXT VR_EXIT_PLAYER = = = = = 1; 2; 3; 4; 999;

INFORMATIONAL: vwPlayer - 142 // Windows Media Player - Copyright 2001 Microsoft Corporation. var var var var g_psPlayState=0; g_osOpenState=0; g_fIsLiveBroadcast=false; g_StatusTextColor="#89A4FF";

var g_bufferingProgress=100; var g_bufferingToolTipFormatString = theme.loadString("res://wmploc/RT_STRING/#2 099"); var g_strPlayTooltip = ""; var g_SetPlayPauseFocus=false; var g_kSeekTooltip = theme.loadString("res://wmploc/RT_STRING/#1809"); var g_fSeekDragging=false; var g_strPlayIcon="res://wmploc/RT_IMAGE/#1784"; function MakeImage( resource_id ) { return "res://wmploc/#" + resource_id; } function ResetPlayIcon() { g_strPlayIcon="res://wmploc/RT_IMAGE/#1784"; } function InitMiniControls() { g_bufferingProgress = player.network.bufferingProgress; OnOpenStateChangeTransport(player.openState); OnPlayStateChangeTransport(player.playState); OnStatusChangeTransport(player.status); } /* var g_fShowingBuyMe=false; function LaunchBuy() { var BuyURL = 'http: INFORMATIONAL: vwPlayer - 143 // Windows Media Player - Copyright 2001 Microsoft Corporation.

// play status icons var g_kIconPause var g_kIconPlay var g_kIconReady var g_kIconDisconnected var g_kIconHDCD var g_kIconDolby var g_kIconFfwd var g_kIconRew

= = = = = = = =

5600; 5601; 5602; 5603; 5604; 5605; 5606; 5607;

var g_kIconStop = 5608; var g_kIconOpening = 5610; var g_kIconTotalPacketLoss = 5611; var g_kIconBuffering var var var var g_kIconConnecting g_kIconLocate g_kIconPacketloss g_kIconStreaming = 5620; = = = = 5621; 5622; 5623; 5624;

var g_kCurrentIcon = g_kIconReady; var var var var g_psPlayState=0; g_osOpenState=0; g_fIsLiveBroadcast=false; g_StatusTextColor="#89A4FF";

var g_bufferingProgress=100; var g_bufferingToolTipFormatString = theme.loadString("res://wmploc/RT_STRING/#2 099"); var g_strPlayTooltip = ""; var g_fStreaming = false; var g_SetPlayPauseFocus=false; var g INFORMATIONAL: vwPlayer - 169 - //<script language="jscript"> function sprintf(str,s) { if (typeof(s)=="string") { var re; re = /%s/g; str = str.replace(re, s); } else { var index =1; for (var replaceStrings in s) { var re; re = eval("/%" + index + "/i"); str = str.replace(re, s[replaceStrings]); index++; } } return str; } String.prototype.sprintf = sprintf; function WMPStringsFunction_GetPositionText() { var ps = player.controls.currentPositionString; if (ps=="") return ""; var ds = "";

if (player.openState==osMediaOpen) { if (player.currentMedia.duration>0) { ds = player.currentMedia.durationString; } } var newvalue; if (ds != "") { var args = new Array(ps,ds); newvalue = g_kPositionFormatString.sprintf(g_kPositionFormatString,args) ; } el INFORMATIONAL: vwPlayer - 2540 - //<script> var g_kDefaultViewHeight=80; var g_kDefaultViewWidth=250; // Define a set of constants to represent the current transport state var g_kTransportStateUnknown = 0; var g_kTransportStateStopped = 1; var g_kTransportStatePaused = 2; var g_kTransportStatePlaying = 3; var g_kTransportStateSeeking = 4; var g_kTransportStateScanning = 5; // Define our global variables var g_pAVTransportService = null; // Current remote device's AVTransport s ervice var g_pVolumeService = null; // Current remote device's Volume servic e var g_pMuteService = null; // Current remote device's mute service var g_pConnectorService = null; // Current remote device's Connector ser vice var g_iNumberTracks = 0; // number of tracks in current media bei ng played var g_iMaxCount = 0; // maximum position we can seek to on cu rrent track var g_iLastKnownVolume = 0; // Player's last known volume state befo re we muted it var g_p INFORMATIONAL: vwPlayer - 4003 - //<script> // Windows Media Player - Copyright 2000 Microsoft Corporation. function InitOCXSkin() { InitVisualizations(); // IE Bug: We do this so that we don't have to change the size synchronousl y // } function InitVisualizations() from the OnLoad event... svLayoutSize.moveTo( svLayoutSize.left, svLayoutSize.top, 10 );

{ if (osMediaOpen == player.OpenState) { if (player.currentMedia.ImageSourceWidth > 0) { svVisual.visible=false; svVideo.visible=true; } else { svVideo.visible=false; svVisual.visible=mediacenter.showEffects; } } else { svVideo.visible=false; svVisual.visible=false; } } function OnPlayStateChangeViz() { InitVisualizations(); AutoSize(); } function OnOpenStateChangeViz() { OnPlayStateChangeViz(); } function AutoSize() { if (osMediaOpen == player.OpenState INFORMATIONAL: vwPlayer - 4004 - //<script> // Windows Media Player - Copyright 2000 Microsoft Corporation. var g_isFading = true; var g_albumArtFadingIn = false; var g_albumArtFadingOut = false; function InitPreviewOCXSkin() { UpdateMainPanel(); svLayoutSize.moveTo( svLayoutSize.left, svLayoutSize.top, 10 ); } function UpdateMainPanel() { if (osMediaOpen == player.OpenState) { if (IsStopped() || !IsVideo()) { svVideo.visible=false; svAlbumArt.visible=true; UpdateAlbumDims();

} else { svAlbumArt.visible=false; svVideo.visible=true; } } else { svVideo.visible=false; svAlbumArt.visible=true; UpdateAlbumDims(); } try { svLayoutColor.backgroundColor=Launcher.GetPreviewPaneColor(); } catch(err) {} } function IsStopped() { return (psStopped == player.playState || psReady == player.playState || INFORMATIONAL: vwPlayer - 4013 // Full-screen bottom skin - jscript source // (c) Microsoft Corporation // // ! // Save this file as D // var g_tracktimeTextWidth = 0; var g_kNonCaptionsHeight = 69; var g_kCaptionsHeight = g_kNonCaptionsHeight + mediacenter.captionsHeight; var g_kDisableTooltips = false; var g_SetPlayPauseFocus=false; var g_kIconOK = 0; var g_kIconOn = 1; var g_kIconOff = 2; var g_nCurrentIcon = 2; function Init() { LayoutMarquee(); OnOpenStateChange(player.openState); OnOpenStateChangeTransport(player.openState); OnPlayStateChangeTransport(player.playState); ShowStatus(player.status); } function OnOpenStateChange(NewState) { if(NewState==osMediaOpen) { g_fCaptionsDetected=false;

UpdateCaptions(); } } function LayoutMarquee() { g_tracktimeTextWidth = tracktime.textwidth; var margin=parseInt(theme.loadString("res://wmploc/RT_STRING/#1272")); tracktime.horizontalAlignment='left';

You might also like