Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
1/6/2010
The put_currentItem method specifies the current media item.
Syntax
HRESULT put_currentItem( IWMPMedia* pIWMPMedia );
Parameters
- pIWMPMedia
[in] Pointer to an IWMPMedia interface.
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 works only with items in the playlist. Calling put_currentItem with a reference to a saved media item is not supported.
The put_currentItem method does not work for all media types. To determine whether you can use it in a clip, call the IWMPControls::get_isAvailable method and pass in the BSTR value "currentitem".