MediaPlayerSurface クラス

定義

MediaPlayerコンポジターの間で共有される ICompositionSurface へのアクセスを提供し、XAML フレームワークを使用せずに Windows.UI.Composition API を使用して MediaPlayer コンテンツをレンダリングできるようにします。

public ref class MediaPlayerSurface sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaPlayerSurface final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaPlayerSurface : System.IDisposable
Public NotInheritable Class MediaPlayerSurface
Implements IDisposable
継承
Object Platform::Object IInspectable MediaPlayerSurface
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v3.0 で導入)

注釈

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

Windows.UI.Composition API を使用してビジュアルをレンダリングする方法の詳細については、「ビジュアル レイヤー」を参照してください。

コンポジション画面にビデオをレンダリングする方法のガイダンスについては、「MediaPlayer を使用して オーディオとビデオを再生する」を参照してください。

プロパティ

CompositionSurface

MediaPlayer コンテンツをレンダリングするための ICompositionSurface を取得します。

Compositor

サーフェスを使用する コンポジター を取得します。

MediaPlayer

MediaPlayerSurface に関連付けられている MediaPlayer を取得します。

メソッド

Close()

MediaPlayerSurface を閉じ、関連付けられているリソースを破棄します。

Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

適用対象

こちらもご覧ください