CastingSource クラス

定義

別のデバイスに送信できるメディア コンテンツを表します。

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

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

MediaPlayer、Image、または HTML タグからこのオブジェクトを取得するには、それぞれの GetAsCastingSource メソッドを呼び出します。 現在のリリースでは、アプリではメディア再生に MediaPlayerMediaPlayerElement を 使用する必要がありますが、従来の MediaElement コントロールには GetAsCastingSource メソッドも用意されています。

プロパティ

PreferredSourceUri

DLNA ByRef で使用するコンテンツの代替 URI を取得または設定します。

適用対象

こちらもご覧ください