VideoStreamDescriptor 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示影片媒體串流的描述。
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
- 繼承
- 屬性
- 實作
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
建立 MediaEncodingProfile時,請呼叫 SetVideoTracks,傳入一或多個 VideoStreamDescriptor 物件,以提供要編碼之視訊播放軌的相關資訊。
如需在 UWP 應用程式中使用媒體串流來源的範例,請參閱 MediaStreamSource 範例 。
版本歷程記錄
Windows 版本 | SDK 版本 | 新增值 |
---|---|---|
1709 | 16299 | 標籤 |
1803 | 17134 | 複製 |
建構函式
VideoStreamDescriptor(VideoEncodingProperties) |
使用指定的VideoEncodingProperties建立VideoStreamDescriptor類別的實例。 |
屬性
EncodingProperties |
取得物件,描述視訊資料流程的編碼屬性。 這些屬性包括視訊的解析度和畫面播放速率。 |
IsSelected |
取得值,指出資料流程目前是否正由 MediaStreamSource使用。 |
Label |
取得或設定應用程式定義的標籤,識別包含多個資料流程之 MediaEncodingProfile 中的視訊串流。 |
Language |
取得或設定資料流程的 RFC-1766 語言代碼。 |
Name |
取得或設定資料流程的名稱。 |
方法
Copy() |