CastingSource Klasse

Definition

Stellt den Medieninhalt dar, der an ein anderes Gerät gesendet werden kann.

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
Vererbung
Object Platform::Object IInspectable CastingSource
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Sie können dieses Objekt aus einem MediaPlayer-, Image- oder HTML-Tag abrufen, indem Sie die entsprechende GetAsCastingSource-Methode aufrufen. In der aktuellen Version sollten Apps MediaPlayer und MediaPlayerElement für die Medienwiedergabe verwenden, aber das Ältere MediaElement-Steuerelement bietet auch eine GetAsCastingSource-Methode .

Eigenschaften

PreferredSourceUri

Ruft einen alternativen URI für den Inhalt zur Verwendung mit DLNA ByRef ab oder legt diesen fest.

Gilt für:

Weitere Informationen