Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PlayToConnectionErrorEventArgs class

Provides information about the Error event.

Syntax


public ref class PlayToConnectionErrorEventArgs sealed 

Members

The PlayToConnectionErrorEventArgs class has these types of members:

Methods

The PlayToConnectionErrorEventArgs class inherits methods from the Object class (C#/VB/C++).

Properties

The PlayToConnectionErrorEventArgs class has these properties.

PropertyAccess typeDescription

Code

Read-only

Gets the error code for a Play To connection error.

Message

Read-only

Gets the error message for a Play To connection error.

 

Remarks

In Windows 8 Windows Store app, Code is always set to DeviceError.

In Windows 8.1 Windows Store app, 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.

For an example of how to use Play To in an application, see Quickstart: Using Play To in applications (JavaScript) or PlayReady DRM.

Examples

No code example is currently available or this language may not be supported.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.PlayTo
Windows::Media::PlayTo [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Media.PlayTo
Windows::Media::PlayTo [C++]

Metadata

Windows.winmd

Attributes

[Deprecated()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

See also

Object
PlayToConnection.Error event
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show: