Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.74 KB

playtoconnectionerroreventargs_code.md

File metadata and controls

26 lines (18 loc) · 1.74 KB
-api-id -api-type
P:Windows.Media.PlayTo.PlayToConnectionErrorEventArgs.Code
winrt property

Windows.Media.PlayTo.PlayToConnectionErrorEventArgs.Code

-description

Gets the error code for a Play To connection error.

-property-value

The error code for a Play To connection error.

-remarks

In Windows 8UWP apps, Code is always set to DeviceError.

In Windows 8.1UWP apps, Code is set to either DeviceError or ProtectedPlaybackFailed. This enables the app to determine if the failure is related to the media-protection status of the content. The app can continue playing the next item in the playlist or to stop. Apps can also use this new Code value to remove all protected music from the playlist.

-examples

-see-also

PlayToConnection.Error event, Play To sample, PlayToReceiver sample, Media Server sample