Called when there is an error with playback, such as an audio track not downloading correctly.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
protected virtual void OnError( BackgroundAudioPlayer player, AudioTrack track, Exception error, bool isFatal )
- Type: Microsoft.Phone.BackgroundAudio.AudioTrack
The track that had the error.
- Type: System.Exception
The error that occurred.
- Type: System.Boolean
If true, playback cannot continue and playback of the track stops.
This method is not guaranteed to be called in all cases. For example, if the background agent itself has an unhandled exception, it does not get called back to handle its own errors.
This API is not supported for Silverlight 8.1 apps.