共用方式為


PlayToSource.PreferredSourceUri 屬性

定義

針對媒體串流指定慣用的統一資源識別項 (URI) ,例如雲端式媒體伺服器,用於依參考播放至。

public:
 property Uri ^ PreferredSourceUri { Uri ^ get(); void set(Uri ^ value); };
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [set: Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
Uri PreferredSourceUri();

void PreferredSourceUri(Uri value);
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
Uri PreferredSourceUri();

void PreferredSourceUri(Uri value);
public System.Uri PreferredSourceUri { [Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; [Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] set; }
public System.Uri PreferredSourceUri { [Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("PlayToSourceWithPreferredSourceUri may be altered or unavailable for releases after Windows 10. Instead, use CastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] set; }
var uri = playToSource.preferredSourceUri;
playToSource.preferredSourceUri = uri;
Public Property PreferredSourceUri As Uri

屬性值

要從中串流媒體的慣用 URI。

屬性

備註

依參考播放可讓網頁和 UWP 應用程式播放數位版權管理 (DRM) 受保護的內容。 應用程式會指定將傳送至 PlayTo 目標裝置的慣用統一資源識別項 (URI) 。 此統一資源識別項 (URI) 可以指向雲端式媒體伺服器。 如果 preferredSourceUri 存在,PlayTo 目標裝置可以直接從雲端串流內容,這可以是 Digital Rights Management (DRM) 保護,而不是從必須未保護內容的Windows 8.1電腦串流內容。

適用於