PlayToManager.DefaultSourceSelection 속성

정의

재생 대상에 대한 기본 원본 선택을 사용하거나 사용하지 않도록 설정합니다.

public:
 property bool DefaultSourceSelection { bool get(); void set(bool value); };
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [set: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
bool DefaultSourceSelection();

void DefaultSourceSelection(bool value);
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
bool DefaultSourceSelection();

void DefaultSourceSelection(bool value);
public bool DefaultSourceSelection { [Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; [Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] set; }
public bool DefaultSourceSelection { [Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] set; }
var boolean = playToManager.defaultSourceSelection;
playToManager.defaultSourceSelection = boolean;
Public Property DefaultSourceSelection As Boolean

속성 값

Boolean

bool

True이면 기본 원본 선택을 사용하도록 설정합니다. 그렇지 않으면 false입니다. 기본값은 true입니다.

특성

설명

미디어 요소가 포함된 앱에는 기본적으로 Play To를 사용하도록 설정되어 있습니다. 사용자가 앱을 실행하는 동안 디바이스 참을 호출하고 미디어를 스트리밍할 대상 디바이스를 선택하는 경우 재생하려면 현재 페이지의 첫 번째 오디오, 비디오 또는 이미지 요소에서 미디어를 스트리밍합니다. DefaultSourceSelection 속성을 false로 설정하여 이 기본 동작을 사용하지 않도록 설정할 수 있습니다.

var ptm = Windows.Media.PlayTo.PlayToManager.getForCurrentView();
ptm.defaultSourceSelection = false;

HTML 태그에 -ms-playToDisabled 특성을 추가하여 기본 Play To 동작에서 개별 HTML 요소를 제외할 수 있습니다.

<video src="http://www.example.com/videos/video.mp4" x-ms-playToDisabled/>

적용 대상

추가 정보