Playback Connection Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a connection that allows a remote device to stream audio to a Windows device.
public ref class AudioPlaybackConnection sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 655360)] /// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] /// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] class AudioPlaybackConnection final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 655360)] [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] public sealed class AudioPlaybackConnection : System.IDisposable
Public NotInheritable Class AudioPlaybackConnection Implements IDisposable
Object Platform::Object IInspectable AudioPlaybackConnection
Windows 10, version 2004 (introduced in 10.0.19041.0)
Windows.Foundation.UniversalApiContract (introduced in v10.0)
Gets the unique device ID for the underlying device represented by the AudioPlaybackConnection.
Gets the current connection state of the AudioPlaybackConnection.
Closes the connection represented by the AudioPlaybackConnection object.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Gets an Advanced Query Syntax (AQS) string for that can be used to find devices for which an AudioPlaybackConnection can be created.
Attempts to connect the underlying device. If successful, this causes any audio that is playing on the remote device to be heard on the local device.
Asynchronously attempts to connect the underlying device. If successful, this causes any audio that is playing on the remote device to be heard on the local device.
Configures the system to allow connections from the remote audio source.
Asynchronously configures the system to allow connections from the remote audio source.
Attempts to create an AudioPlaybackConnection from the specified device ID.
Occurs when the connection state of the AudioPlaybackConnection changes.