다음을 통해 공유


IActiveBasicDevice::NotifyStreamingStatus method (windows.media.streaming.h)

[The feature associated with this page, Windows Media Streaming API, is a legacy feature. It has been superseded by Media Casting. Media Casting has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Media Casting instead of Windows Media Streaming API, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Called by the application to indicate that the device is being used for active streaming.

Syntax

HRESULT NotifyStreamingStatus(
  ::boolean fIsStreaming
);

Parameters

fIsStreaming

true indicates that streaming is on. false indicates that streaming if off.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is called by the application to indicate that the device is being used for active streaming. A value of true means that streaming is on. A value of false means that streaming is off.

The on/off calls must be matching calls from the application.

In response to this notification, the ActiveBasicDevice object can take actions to keep the connection to the device active.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header windows.media.streaming.h
DLL PlayToDevice.dll

See also

IActiveBasicDevice