AppBroadcastStreamReader.TryGetNextVideoFrame Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.