Delen via


AppBroadcastPreviewStreamReader Class

Definition

Provides information about and access to the app broadcast preview stream.

Note

This API requires the appBroadcast and appBroadcastSettings capability which is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime.

public ref class AppBroadcastPreviewStreamReader sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.AppBroadcastContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppBroadcastPreviewStreamReader final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.AppBroadcastContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppBroadcastPreviewStreamReader
Public NotInheritable Class AppBroadcastPreviewStreamReader
Inheritance
Object Platform::Object IInspectable AppBroadcastPreviewStreamReader
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Media.Capture.AppBroadcastContract (introduced in v1.0)
App capabilities
appBroadcast appBroadcastSettings

Properties

VideoBitmapAlphaMode

Gets the video bitmap alpha mode for the app broadcast preview stream.

VideoBitmapPixelFormat

Gets the video bitmap pixel format for the app broadcast preview stream.

VideoHeight

Gets the video height, in pixels, of the app broadcast preview stream.

VideoStride

Gets the video stride of the app broadcast preview stream.

VideoWidth

Gets the video width, in pixels, of the app broadcast preview stream.

Methods

TryGetNextVideoFrame()

Attempts to retrieve the next video frame from the app broadcast preview stream.

Events

VideoFrameArrived

Occurs when a new video frame arrives from the app broadcast preview stream.

Applies to