OnBeginStreaming Method
Collapse the table of content
Expand the table of content

AudioStreamingAgent.OnBeginStreaming Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Called when a new track requires audio streaming because it is about to start playing.

Namespace:  Microsoft.Phone.BackgroundAudio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

protected virtual void OnBeginStreaming(
	AudioTrack track,
	AudioStreamer streamer


Type: Microsoft.Phone.BackgroundAudio.AudioTrack
The track that needs audio streaming.
Type: Microsoft.Phone.BackgroundAudio.AudioStreamer
The AudioStreamer object to which a MediaStreamSource should be attached to start playback.

If you don’t override this method, then the base class implementation simply calls Abort().

Caution noteCaution:

This API is not supported for Silverlight 8.1 apps.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2017 Microsoft