VideoTrack クラス

定義

ビデオ トラックを表します。

public ref class VideoTrack sealed : IMediaTrack
/// [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 VideoTrack final : IMediaTrack
[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 VideoTrack : IMediaTrack
Public NotInheritable Class VideoTrack
Implements IMediaTrack
継承
Object Platform::Object IInspectable VideoTrack
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

MediaPlaybackVideoTrackList.GetAt を呼び出して、このクラスのインスタンスを取得します。

VideoTrack オブジェクトを操作するためのハウツー ガイダンスについては、「メディアアイテム、プレイリスト、トラック」を参照してください。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1607 14393 GetEncodingProperties
1607 14393 名前
1607 14393 OpenFailed
1607 14393 PlaybackItem
1607 14393 SupportInfo

プロパティ

Id

ビデオ トラックの識別子を取得します。

Label

ビデオ トラックのラベルを取得または設定します。

Language

ビデオ トラックの言語を示す文字列を取得します。

Name

VideoTrack の名前を取得します。

PlaybackItem

VideoTrack を含む MediaPlaybackItem を取得します。

SupportInfo

VideoTrack のサポート情報を取得します。 この情報には、ビデオ デコーダーの状態と、ビデオ トラックが関連付けられている MediaSource の状態が含まれます。

TrackKind

トラックに含まれるデータの種類を示す値を取得します。 VideoTrack オブジェクトの場合、この値は常に MediaTrackKind.Video です

メソッド

GetEncodingProperties()

VideoTrack のエンコード プロパティを取得します。

イベント

OpenFailed

VideoTrack が開かれたときに発生します。

適用対象

こちらもご覧ください