Dela via


AppBroadcastStreamReader.TryGetNextVideoFrame Method

Definition

Attempts to obtain an AppBroadcastStreamVideoFrame object representing the latest video frame from the broadcast stream.

public:
 virtual AppBroadcastStreamVideoFrame ^ TryGetNextVideoFrame() = TryGetNextVideoFrame;
AppBroadcastStreamVideoFrame TryGetNextVideoFrame();
public AppBroadcastStreamVideoFrame TryGetNextVideoFrame();
function tryGetNextVideoFrame()
Public Function TryGetNextVideoFrame () As AppBroadcastStreamVideoFrame

Returns

If successful, the latest video frame from the broadcast stream; otherwise, null.

Windows requirements

App capabilities
appBroadcast appBroadcastSettings

Remarks

In order to avoid unnecessary copying of frame data, this method returns a reference to frame data stored in a circular buffer. After acquiring a frame, you should make a copy of frame data and release the buffer as quickly as possible.

Applies to