Share via


Windows Media Player 11 SDK IWMPContentPartner::StationEvent 

Windows Media Player SDK banner art

Previous Next

IWMPContentPartner::StationEvent

Note This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The StationEvent method notifies the plug-in of events during playback of a Windows Media metafile playlist (ASX).

Syntax

  HRESULT StationEvent(
  BSTR  bstrStationEventType,
  ULONG  StationId,
  ULONG  PlaylistIndex,
  ULONG  TrackID,
  BSTR  TrackData,
  DWORD  dwSecondsPlayed
);

Parameters

bstrStationEventType

[in]  BSTR containing the event type. The caller (Windows Media Player) sets this parameter to one of the following values.

String Description
g_szStationEvent_Started A track started playing.
g_szStationEvent_Complete A track finished playing.
g_szStationEvent_Skipped A track was skipped.

StationId

[in]  The station ID.

PlaylistIndex

[in]  The playlist index.

TrackID

[in]  The track ID.

TrackData

[in]  BSTR containing track data.

dwSecondsPlayed

[in]  Number of seconds that the playlist was played.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

This method is called to enable logging of certain ASX events when an ASX created by the online store is played.

Requirements

Version: Windows Media Player 11

Header: contentpartner.h

See Also

Previous Next