SetSource Method
Collapse the table of content
Expand the table of content

AudioStreamer.SetSource Method

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

Sets a MediaStreamSource derived object that provides buffering and playback functionality for this audio stream.

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

'Declaration
Public Sub SetSource ( _
	source As MediaStreamSource _
)

Parameters

source
Type: System.Windows.Media.MediaStreamSource
The MediaStreamSource to use for this audio stream.

ExceptionCondition
InvalidOperationException

SetSource(MediaStreamSource) has been called more than once.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft