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)
Syntax
Public Sub SetSource ( _
source As MediaStreamSource _
)
public void SetSource(
MediaStreamSource source
)
Parameters
- source
Type: System.Windows.Media..::.MediaStreamSource
The MediaStreamSource to use for this audio stream.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | SetSource(MediaStreamSource) has been called more than once. |
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone