Detailed Object Model Comparison

The following table compares the Windows Media Player 6.4 object model properties with the Windows Media Player 7 or later object model.

Windows Media Player 6.4 property Windows Media Player 7 or later equivalent
Player6.AllowChangeDisplaySizeThe display of Windows Media Player 7 or later automatically resizes to fit the media. You can set the height and width properties in the <OBJECT> tag or in script.
Player6.AllowScanControls. fastForward and Controls.fastReverse are automatically enabled for file types that support these methods.
Player6.AnglesAvailableNot available.
Player6.AnimationAtStartNot available.
Player6.AudioStreamUse Controls.currentAudioLanguageIndex.
Player6.AudioStreamsAvailableUse Controls.audioLanguageCount.
Player6.AutoRewindUse Controls.currentPosition in script to specify or retrieve the current position. Alternatively, use markers and the Player.markerHit event.
Player6.AutoSizeAutomatic sizing is the default behavior. To override automatic sizing, set the height and width properties in the <OBJECT> tag or in script.
Player6.AutoStartUse Settings.autoStart.
Player6.BalanceUse Settings.balance.
Player6.BandwidthUse Network.bandWidth.
Player6.BaseURLUse Settings.baseURL.
Player6.BufferingCountUse Network.bufferingCount.
Player6.BufferingProgressUse Network.bufferingProgress.
Player6.BufferingTimeUse Network.bufferingTime.
Player6.ButtonsAvailableNot available.
Player6.CanPreviewNot available.
Player6.CanScanUse Controls.isAvailable("FastForward") and Controls.isAvailable("FastReverse").
Player6.CanSeekUse Controls.isAvailable to test whether a particular seek method can be performed.
Player6.CanSeekToMarkersUse Controls.isAvailable("CurrentMarker"). Use Media.markerCount to retrieve the count of markers in a particular media item. Use Controls.currentMarker to specify or retrieve the current marker number.
Player6.CaptioningIDUse ClosedCaption.captioningID.
Player6.CCActiveNot available. See Closed Captioning for information about how closed captioning has changed in Windows Media Player.
Player6.ChannelDescriptionNot available.
Player6.ChannelNameNot available.
Player6.ChannelURLNot available.
Player6.ClickToPlayNot available. You should provide controls in your user interface to start playback. Alternatively, the user can right-click the video image to open a pop-up menu that contains a Play/Pause selection if Player.enableContextMenu equals true.
Player6.ClientIDNot available.

Windows Media Player 9 Series or later allows the user to select whether a unique Player ID is transmitted to content providers.

If the user selects this option, the Player sends a unique ID to the Windows Media server. The ID is logged in the server's log file, located in the ..system32\logfiles folder by default. The log field name is "c-playerid". Server logging is not enabled by default in Windows Media Services.

If the user does not select this option, the server generates a random session ID, which is unique for each client for a given session.

For more information, see the Windows Media Services 9 Series documentation.

Player6.CodecCountNot available.
Player6.ColorKeyNot available.
Player6.ConnectionSpeedNot available. Use Network.bitRate to determine the current bit rate.
Player6.ContactAddressNot available.
Player6.ContactEmailNot available.
Player6.ContactPhoneNot available.
Player6.CreationDateUse MediaCollection.getMediaAtom("CreationDate") to retrieve the index of the creation date atom. Use Media.getItemInfoByAtom to retrieve the metadata.
Player6.CurrentAngleNot available.
Player6.CurrentAudioStreamUse Controls.currentAudioLanguageIndex.
Player6.CurrentButtonNot available.
Player6.CurrentCCServiceNot available.
Player6.CurrentChapterRetrieve the current playlist. If the current playlist is not the same one as the playlist returned by Cdrom.playlist, then there is no current chapter. Otherwise, the current chapter number is the index of the current media in the current playlist.
Player6.CurrentDiscSideNot available.
Player6.CurrentDomainUse DVD.domain.
Player6.CurrentMarkerUse Controls.currentMarker.
Player6.CurrentPositionUse Controls.currentPosition.
Player6.CurrentSubpictureStreamNot available.
Player6.CurrentTimeUse Controls.currentPositionTimeCode, Controls.currentPositionString, or Controls.currentPosition.
Player6.CurrentTitleRetrieve the current playlist. If the current playlist is the same one as the playlist returned by Cdrom.playlist, then the title number is the index of the current media in the current playlist.
Player6.CurrentVolumeNot available.
Player6.CursorTypeNot available. Use Internet Explorer styles instead.
Player6.DefaultFrameUse Settings.defaultFrame, or use a <PARAM> attribute in the <OBJECT> element:

<PARAM NAME="defaultFrame" VALUE="right">
Player6.DisplayBackColorNot available.
Player6.DisplayForeColorNot available.
Player6.DisplayModeThe current position can be retrieved in seconds from the beginning as a Number using Controls.currentPosition, as a String formatted as HH:MM:SS (hours, minutes, seconds) using Controls.currentPositionString, or in time code format using Controls.currentPositionTimeCode.
Player6.DisplaySizeThe default display automatically resizes to fit the media. You can set the height and width properties in the <OBJECT> tag, or in script. Use Player.fullScreen to switch to full-screen mode.
Player6.DurationUse Media.duration.
Player6.DVDUse Player.DVD.
Player6.EnableContextMenuUse Player.enableContextMenu.
Player6.EnabledUse Player.enabled.
Player6.EnableFullScreenControlsWhen using Windows Media Player 9 Series or later, full-screen controls are enabled automatically unless Player.uiMode = "none".
Player6.EnablePositionControlsNot available. You can provide custom controls or use Player.uimode to choose a default configuration.
Player6.EnableTrackerNot available. You can provide a custom control or use Player.uimode to choose a default configuration.
Player6.EntryCountUse Playlist.count
Player6.ErrorCodeUse ErrorItem.errorCode.
Player6.ErrorCorrectionNot available.
Player6.ErrorDescriptionUse ErrorItem.errorDescription.
Player6.FileNameUse Player.URL or Player.currentMedia. Use Controls.currentItem when working within a playlist.
Player6.FramesPerSecondNot available.
Player6.HasErrorUse Error.errorCount.
Player6.HasMultipleItemsNot available.
Player6.ImageSourceHeightUse Media.imageSourceHeight.
Player6.ImageSourceWidthUse Media.imageSourceWidth.
Player6.InvokeURLsUse Settings.invokeURLs.
Player6.IsBroadcastUse Network.sourceProtocol.
Player6.IsDurationValidNot available. Media.duration contains a valid value when used with the current media object.
Player6.LanguageUse Controls.currentAudioLanguage
Player6.LostPacketsUse Network.lostPackets.
Player6.MarkerCountUse Media.markerCount.
Player6.MuteUse Settings.mute.
Player6.OpenStateUse Player.openState.
Player6.PlayCountUse Settings.playCount.
Player6.PlayStateUse Player.playState.
Player6.PreviewModeNot available. Use a script loop structure with an HTML timer to duplicate this functionality.
Player6.RateUse Settings.rate.
Player6.ReadyStateUse Player.openState.
Player6.ReceivedPacketsUse Network.receivedPackets.
Player6.ReceptionQualityUse Network.receptionQuality.
Player6.RecoveredPacketsUse Network.recoveredPackets.
Player6.RootNot available.
Player6.SAMIFileNameUse ClosedCaption.SAMIFileName.
Player6.SAMILangUse ClosedCaption.SAMILang.
Player6.SAMIStyleUse ClosedCaption.SAMIStyle.
Player6.SelectionEndUse Media.duration to determine the length of a Media object. Use a marker with Controls.currentMarker to specify a custom end position.
Player6.SelectionStartUse Controls.currentPosition to start playback from a particular position or use a marker with Controls.currentMarker to specify a custom start position.
Player6.SendErrorEventsErrors are queued. Use the Error object and the ErrorItem object to retrieve error information.
Player6.SendKeyboardEventsNot available.
Player6.SendMouseClickEventsNot available.
Player6.SendMouseMoveEventsNot available.
Player6.SendOpenStateChangeEventsNot available.
Player6.SendPlayStateChangeEventsNot available.
Player6.SendWarningEventsNot available.
Player6.ShowAudioControlsNot available. You can provide custom controls or use Player.uimode to choose a default configuration.
Player6.ShowCaptioningNot available. You can provide a custom closed caption display.
Player6.ShowControlsNot available. You can provide custom controls or use Player.uimode to choose a default configuration.
Player6.ShowDisplayNot available.
Player6.ShowGotoBarNot available. You can provide custom functionality using the Media object
Player6.ShowPositionControlsNot available. You can provide custom controls or use Player.uimode to choose a default configuration.
Player6.ShowStatusBarNot available. You can provide custom controls or use Player.uimode to choose a default configuration.
Player6.ShowTrackerNot available. You can provide custom controls or use Player.uimode to choose a default configuration.
Player6.SourceLinkUse Media.sourceURL.
Player6.SourceProtocolUse Network.sourceProtocol.
Player6.StreamCountNot available. Use Controls.audioLanguageCount to retrieve the number of audio language streams.
Player6.SubpictureOnNot available.
Player6.SubpictureStreamsAvailableNot available
Player6.TitlesAvailableUse the following:

Player.Cdrom.playlist.count - 1

Player6.TotalTitleTimeUse currentMedia.duration or currentMedia.durationString.
Player6.TransparentAtStartUse script to specify the height and width values to make the player visible or invisible.
Player6.UniqueIDNot available.
Player6.VideoBorder3DNot available.
Player6.VideoBorderColorNot available.
Player6.VideoBorderWidthNot available.
Player6.VolumeUse Settings.Volume.
Player6.VolumesAvailableNot available.

 

The following table compares the Windows Media Player version 6.4 object model methods with the Windows Media Player 7 or later object model.

Windows Media Player 6.4 method Windows Media Player 7 or later equivalent
Player6.AboutBoxUse Player.versionInfo to retrieve the version of Windows Media Player.
Player6.BackwardScanUse Settings.rate.
Player6.ButtonActivateNot available.
Player6.ButtonSelectAndActivateNot available.
Player6.CancelNot available.
Player6.ChapterPlayIf already playing the specified title playlist, retrieve the desired chapter as a media object using the following syntax:

var media = Player.currentPlaylist.item(index);

Then, specify Player.currentMedia using the media object returned.

Player6.ChapterPlayAutoStopNot available.
Player6.ChapterSearchIf already playing the specified title playlist, retrieve the desired chapter as a media object using the following syntax:

var media = Player.currentPlaylist.item(index);

Then, specify Player.currentMedia using the media object returned.

Player6.FastForwardUse Controls.fastForward.
Player6.FastReverseUse Controls.fastReverse.
Player6.ForwardScanUse Settings.rate.
Player6.GetAllGPRMsNot available.
Player6.GetAllSPRMsNot available.
Player6.GetAudioLanguageUse Controls.currentAudioLanguage to retrieve the LCID of the current audio language.
Player6.GetCodecDescriptionNot available.
Player6.GetCodecInstalledNot available.
Player6.GetCodecURLUse ErrorItem.customUrl.
Player6.GetCurrentEntryUse script to loop through the current playlist. Use Media.isIdentical to compare each entry in the playlist to the Player.currentMedia object.
Player6.GetMarkerNameUse Media.getMarkerName.
Player6.GetMarkerTimeUse Media.getMarkerTime.
Player6.GetMediaInfoStringUse Media.getItemInfo, Media.getItemInfoByAtom, and their associated methods to retrieve metadata.
Player6.GetMediaParameterUse Playlist.item to retrieve a media item. Then use Media.getItemInfo to retrieve the parameter string.
Player6.GetMediaParameterNameUse Playlist.item to retrieve a media item. Then use Media.getAttributeName to retrieve the parameter string.
Player6.GetMoreInfoURLNot available.
Player6.GetNumberOfChaptersIf a title is currently playing, use currentPlaylist.count.
Player6.GetStreamGroupNot available.
Player6.GetStreamNameNot available.
Player6.GetStreamSelectedNot available.
Player6.GetSubpictureLanguageNot available.
Player6.GoUpUse DVD.back.
Player6.IsSoundCardEnabledNot available.
Player6.LeftButtonSelectNot available.
Player6.LowerButtonSelectNot available.
Player6.MenuCallUse DVD.titleMenu or DVD.topMenu.
Player6.NextUse Controls.next.
Player6.NextPGSearchUse Controls.next.
Player6.OpenUse Player.URL or Player.currentMedia. Files always open asynchronously.
Player6.PauseUse Controls.pause.
Player6.PlayUse Controls.play.
Player6.PreviousUse Controls.previous.
Player6.PrevPGSearchUse Controls.previous.
Player6.ResumeFromMenuUse DVD.resume.
Player6.RightButtonSelectNot available.
Player6.SetCurrentEntryRetrieve a media object using currentPlaylist.item(entryNumber). Then, specify the retrieved media object using Controls.currentItem.
Player6.ShowDialogNot available.
Player6.StillOffUse Controls.play. Alternatively, use Controls.Next if currently in still mode.
Player6.StopUse Controls.stop.
Player6.StreamSelectNot available. Use Controls.currentAudioLanguage to specify an audio language stream.
Player6.TimePlayFrom the root playlist, use currentPlaylist.item(index) to retrieve a media object. Then, set the media object as the current one using Controls.currentItem. Then, specify Controls.currentPosition using a time value in seconds.
Player6.TimeSearchUse Controls.currentPosition.
Player6.TitlePlayIf already playing the specified title playlist, retrieve the desired chapter as a media object using the following syntax:

var media = Player.currentPlaylist.item(index);

Then, specify Player.currentMedia using the media object returned.

Alternatively, use currentPlaylist.item to retrieve a media object, and then use the media object returned to specify Controls.currentItem.

Player6.TopPGSearchNot available.
Player6.UOPValidNot available
Player6.UpperButtonSelectNot available.

 

The following table compares the Windows Media Player version 6.4 object model events with the Windows Media Player 7 or later object model.

Windows Media Player 6.4 event Windows Media Player 7 or later equivalent
Player6.BufferingUse Player.Buffering.
Player6.ClickUse Player.Click
Player6.DblClickUse Player.DoubleClick
Player6.DisconnectNot available.
Player6.DisplayModeChangeNot available.
Player6.DVDNotifyPlayer.DomainChange and Player.OpenPlaylistSwitch are DVD-specific events. Other events related to playlists, media, and CD-ROM media may apply as well depending on the application.
Player6.EndOfStreamUse Player.PlayState.
Player6.ErrorThe event is unchanged. Errors, however, are queued. Use the Error object with the ErrorItem object to retrieve error information from the queue. See the example code in the preceding section, Error handling.
Player6.KeyDownUse Player.Keydown
Player6.KeyPressUse Player.KeyPress
Player6.KeyUpUse Player.KeyUp
Player6.MarkerHitUse Player.MarkerHit.
Player6.MouseDownUse Player.MouseDown
Player6.MouseMoveUse Player.MouseMove
Player6.MouseUpUse Player.MouseUp
Player6.NewStreamUse Player.OpenStateChange
Player6.OpenStateChangeUse Player.OpenStateChange.
Player6.PlayStateChangeUse Player.PlayStateChange.
Player6.PositionChangeUse Player.PositionChange.
Player6.ReadyStateChangeUse Player.PlayStateChange.
Player6.ScriptCommandUse Player.ScriptCommand.
Player6.WarningNot available.

 

Related topics

Object Model Migration Guide
Object Model Reference for Scripting

 

 

Community Additions

ADD
Show:
© 2014 Microsoft