VideoStreamDescriptor Klasse

Definition

Stellt eine Beschreibung eines Videomedienstreams dar.

public ref class VideoStreamDescriptor sealed
public ref class VideoStreamDescriptor sealed : IMediaStreamDescriptor2
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class VideoStreamDescriptor final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VideoStreamDescriptor final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VideoStreamDescriptor final : IMediaStreamDescriptor2
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class VideoStreamDescriptor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VideoStreamDescriptor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VideoStreamDescriptor : IMediaStreamDescriptor2
function VideoStreamDescriptor(encodingProperties)
Public NotInheritable Class VideoStreamDescriptor
Public NotInheritable Class VideoStreamDescriptor
Implements IMediaStreamDescriptor2
Vererbung
Object Platform::Object IInspectable VideoStreamDescriptor
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Rufen Sie beim Erstellen eines MediaEncodingProfile-ObjektsSetVideoTracks auf, und übergeben Sie ein oder mehrere VideoStreamDescriptor-Objekte , um Informationen zu den zu codierenden Videospuren bereitzustellen.

Im MediaStreamSource-Beispiel finden Sie ein Beispiel für die Verwendung der Medienstreamquelle in einer UWP-App.

Versionsverlauf

Windows-Version SDK-Version Mehrwert
1709 16299 Bezeichnung
1803 17134 Kopieren

Konstruktoren

VideoStreamDescriptor(VideoEncodingProperties)

Erstellt eine instance der VideoStreamDescriptor-Klasse mit dem angegebenen VideoEncodingProperties.

Eigenschaften

EncodingProperties

Ruft ein Objekt ab, das die Codierungseigenschaften für den Videostream beschreibt. Diese Eigenschaften umfassen die Auflösung und Bildfrequenz des Videos.

IsSelected

Ruft einen Wert ab, der angibt, ob der Stream derzeit von einer MediaStreamSource verwendet wird.

Label

Ruft eine app-definierte Bezeichnung ab, die einen Videostream in einem MediaEncodingProfile identifiziert, der mehrere Datenströme enthält, oder legt diese fest.

Language

Ruft den RFC-1766-Sprachcode für den Stream ab oder legt diese fest.

Name

Ruft den Namen des Datenstroms ab oder legt den Namen fest.

Methoden

Copy()

Erstellt eine Kopie des Windows.Media.Core.VideoStreamDescriptor.

Gilt für:

Weitere Informationen