WMV Video Parameter

Microsoft WMV Video Parameter

WMV Player – HTML Parameter

Mit der Einführung des Windows Media Player 9 hat sich das Video-Objekt der Windows Media Players verändert. Viele der aus der Version 6 des Media Palyers bekannte Parameter sind nicht mehr vorhanden. Dieses wirkt sich insbesondere bei der Darstellung von Videos innerhalb der html Seiten aus.

Bekannte und geliebte Funktionen des Windows Media Players, wie zum Beispiel die über Javascript gesteuerte Größenänderung des Video, lassen sich nicht mehr ausführen. Nachfolgend finden Sie eine Gegenüberstellung der im 6.x vorhanden Paramterfunktionen des WMV Players zu den neuen Parametern des 9er Video Player Model Object.

Windows Media Player 6.4 property Windows Media Player 7 or later equivalent
AllowChangeDisplaySize The 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.
AllowScan Controls.fastForward and Controls.fastReverse are automatically enabled for file types that support these methods.
AnglesAvailable Not available.
AnimationAtStart Not available.
AudioStream Use Controls.currentAudioLanguageIndex.
AudioStreamsAvailable Use Controls.audioLanguageCount.
AutoRewind Use Controls.currentPosition in script to specify or retrieve the current position. Alternatively, use markers and the Player.markerHit event.
AutoSize Automatic sizing is the default behavior. To override automatic sizing, set the height and width properties in the <OBJECT> tag or in script.
AutoStart Use Settings.autoStart.
Balance Use Settings.balance.
Bandwidth Use Network.bandWidth.
BaseURL Use Settings.baseURL.
BufferingCount Use Network.bufferingCount.
BufferingProgress Use Network.bufferingProgress.
BufferingTime Use Network.bufferingTime.
ButtonsAvailable Not available.
CanPreview Not available.
CanScan Use Controls.isAvailable(„FastForward“) and Controls.isAvailable(„FastReverse“).
CanSeek Use Controls.isAvailable to test whether a particular seek method can be performed.
CanSeekToMarkers Use 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.
CaptioningID Use ClosedCaption.captioningID.
CCActive Not available.
ChannelDescription Not available.
ChannelName Not available.
ChannelURL Not available.
ClickToPlay Not 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.
ClientID Not 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.

CodecCount Not available.
ColorKey Not available.
ConnectionSpeed Not available. Use Network.bitRate to determine the current bit rate.
ContactAddress Not available.
ContactEmail Not available.
ContactPhone Not available.
CreationDate Use MediaCollection.getMediaAtom(„CreationDate“) to retrieve the index of the creation date atom. Use Media.getItemInfoByAtom to retrieve the metadata.
CurrentAngle Not available.
CurrentAudioStream Use Controls.currentAudioLanguageIndex.
CurrentButton Not available.
CurrentCCService Not available.
CurrentChapter Retrieve 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.
CurrentDiscSide Not available.
CurrentDomain Use DVD.domain.
CurrentMarker Use Controls.currentMarker.
CurrentPosition Use Controls.currentPosition.
CurrentSubpictureStream Not available.
CurrentTime Use Controls.currentPositionTimeCode, Controls.currentPositionString, or Controls.currentPosition.
CurrentTitle Retrieve 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.
CurrentVolume Not available.
CursorType Not available. Use Internet Explorer styles instead.
DefaultFrame Use Settings.defaultFrame, or use a <PARAM> attribute in the <OBJECT> element: <PARAM NAME=“defaultFrame“ VALUE=“right“>
DisplayBackColor Not available.
DisplayForeColor Not available.
DisplayMode The 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.
DisplaySize The 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.
Duration Use Media.duration.
DVD Use Player.DVD.
EnableContextMenu Use Player.enableContextMenu.
Enabled Use Player.enabled.
EnableFullScreenControls When using Windows Media Player 9 Series or later, full-screen controls are enabled automatically unless Player.uiMode = „none“.
EnablePositionControls Not available. You can provide custom controls or use Player.uimode to choose a default configuration.
EnableTracker Not available. You can provide a custom control or use Player.uimode to choose a default configuration.
EntryCount Use Playlist.count
ErrorCode Use ErrorItem.errorCode.
ErrorCorrection Not available.
ErrorDescription Use ErrorItem.errorDescription.
FileName Use Player.URL or Player.currentMedia. Use Controls.currentItem when working within a playlist.
FramesPerSecond Not available.
HasError Use Error.errorCount.
HasMultipleItems Not available.
ImageSourceHeight Use Media.imageSourceHeight.
ImageSourceWidth Use Media.imageSourceWidth.
InvokeURLs Use Settings.invokeURLs.
IsBroadcast Use Network.sourceProtocol.
IsDurationValid Not available. Media.duration contains a valid value when used with the current media object.
Language Use Controls.currentAudioLanguage
LostPackets Use Network.lostPackets.
MarkerCount Use Media.markerCount.
Mute Use Settings.mute.
OpenState Use Player.openState.
PlayCount Use Settings.playCount.
PlayState Use Player.playState.
PreviewMode Not available. Use a script loop structure with an HTML timer to duplicate this functionality.
Rate Use Settings.rate.
ReadyState Use Player.openState.
ReceivedPackets Use Network.receivedPackets.
ReceptionQuality Use Network.receptionQuality.
RecoveredPackets Use Network.recoveredPackets.
Root Not available.
SAMIFileName Use ClosedCaption.SAMIFileName.
SAMILang Use ClosedCaption.SAMILang.
SAMIStyle Use ClosedCaption.SAMIStyle.
SelectionEnd Use Media.duration to determine the length of a Media object. Use a marker with Controls.currentMarker to specify a custom end position.
SelectionStart Use Controls.currentPosition to start playback from a particular position or use a marker with Controls.currentMarker to specify a custom start position.
SendErrorEvents Errors are queued. Use the Error object and the ErrorItem object to retrieve error information.
SendKeyboardEvents Not available.
SendMouseClickEvents Not available.
SendMouseMoveEvents Not available.
SendOpenStateChangeEvents Not available.
SendPlayStateChangeEvents Not available.
SendWarningEvents Not available.
ShowAudioControls Not available. You can provide custom controls or use Player.uimode to choose a default configuration.
ShowCaptioning Not available. You can provide a custom closed caption display.
ShowControls Not available. You can provide custom controls or use Player.uimode to choose a default configuration.
ShowDisplay Not available.
ShowGotoBar Not available. You can provide custom functionality using the Media object
ShowPositionControls Not available. You can provide custom controls or use Player.uimode to choose a default configuration.
ShowStatusBar Not available. You can provide custom controls or use Player.uimode to choose a default configuration.
ShowTracker Not available. You can provide custom controls or use Player.uimode to choose a default configuration.
SourceLink Use Media.sourceURL.
SourceProtocol Use Network.sourceProtocol.
StreamCount Not available. Use Controls.audioLanguageCount to retrieve the number of audio language streams.
SubpictureOn Not available.
SubpictureStreamsAvailable Not available
TitlesAvailable Use the following:

Player.Cdrom.playlist.count – 1

TotalTitleTime Use currentMedia.duration or currentMedia.durationString.
TransparentAtStart Use script to specify the height and width values to make the player visible or invisible.
UniqueID Not available.
VideoBorder3D Not available.
VideoBorderColor Not available.
VideoBorderWidth Not available.
Volume Use Settings.Volume.
VolumesAvailable Not 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
AboutBox Use Player.versionInfo to retrieve the version of Windows Media Player.
BackwardScan Use Settings.rate.
ButtonActivate Not available.
ButtonSelectAndActivate Not available.
Cancel Not available.
ChapterPlay If 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.

ChapterPlayAutoStop Not available.
ChapterSearch If 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.

FastForward Use Controls.fastForward.
FastReverse Use Controls.fastReverse.
ForwardScan Use Settings.rate.
GetAllGPRMs Not available.
GetAllSPRMs Not available.
GetAudioLanguage Use Controls.currentAudioLanguage to retrieve the LCID of the current audio language.
GetCodecDescription Not available.
GetCodecInstalled Not available.
GetCodecURL Use ErrorItem.customUrl.
GetCurrentEntry Use script to loop through the current playlist. Use Media.isIdentical to compare each entry in the playlist to the Player.currentMedia object.
GetMarkerName Use Media.getMarkerName.
GetMarkerTime Use Media.getMarkerTime.
GetMediaInfoString Use Media.getItemInfo, Media.getItemInfoByAtom, and their associated methods to retrieve metadata.
GetMediaParameter Use Playlist.item to retrieve a media item. Then use Media.getItemInfo to retrieve the parameter string.
GetMediaParameterName Use Playlist.item to retrieve a media item. Then use Media.getAttributeName to retrieve the parameter string.
GetMoreInfoURL Not available.
GetNumberOfChapters If a title is currently playing, use currentPlaylist.count.
GetStreamGroup Not available.
GetStreamName Not available.
GetStreamSelected Not available.
GetSubpictureLanguage Not available.
GoUp Use DVD.back.
IsSoundCardEnabled Not available.
LeftButtonSelect Not available.
LowerButtonSelect Not available.
MenuCall Use DVD.titleMenu or DVD.topMenu.
Next Use Controls.next.
NextPGSearch Use Controls.next.
Open Use Player.URL or Player.currentMedia. Files always open asynchronously.
Pause Use Controls.pause.
Play Use Controls.play.
Previous Use Controls.previous.
PrevPGSearch Use Controls.previous.
ResumeFromMenu Use DVD.resume.
RightButtonSelect Not available.
SetCurrentEntry Retrieve a media object using currentPlaylist.item(entryNumber). Then, specify the retrieved media object using Controls.currentItem.
ShowDialog Not available.
StillOff Use Controls.play. Alternatively, use Controls.Next if currently in still mode.
Stop Use Controls.stop.
StreamSelect Not available. Use Controls.currentAudioLanguage to specify an audio language stream.
TimePlay From 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.
TimeSearch Use Controls.currentPosition.
TitlePlay If 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.

TopPGSearch Not available.
UOPValid Not available
UpperButtonSelect Not 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
Buffering Use Player.Buffering.
Click Use Player.Click
DblClick Use Player.DoubleClick
Disconnect Not available.
DisplayModeChange Not available.
DVDNotify Player.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.
EndOfStream Use Player.PlayState.
Error The 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.
KeyDown Use Player.Keydown
KeyPress Use Player.KeyPress
KeyUp Use Player.KeyUp
MarkerHit Use Player.MarkerHit.
MouseDown Use Player.MouseDown
MouseMove Use Player.MouseMove
MouseUp Use Player.MouseUp
NewStream Use Player.OpenStateChange
OpenStateChange Use Player.OpenStateChange.
PlayStateChange Use Player.PlayStateChange.
PositionChange Use Player.PositionChange.
ReadyStateChange Use Player.PlayStateChange.
ScriptCommand Use Player.ScriptCommand.
Warning Not available.

 

Leave a Reply

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert