Class LocalAudioService
Inherited Members
Namespace: DolbyIO.Comms.Services
Assembly: DolbyIO.Comms.Sdk.dll
Syntax
public sealed class LocalAudioService
Examples
try
{
await _sdk.Audio.Local.StartAsync();
await _sdk.Audio.Local.MuteAsync(true);
await _sdk.Audio.Local.StopAsync();
}
catch
{
// Error handling
}
Methods
| Improve this Doc View SourceMuteAsync(Boolean)
Stops sending the local participant's audio to the conference. The mute method does not notify the server to stop audio stream transmission.
Declaration
public async Task MuteAsync(bool muted)
Parameters
Type | Name | Description |
---|---|---|
Boolean | muted | A boolean value that indicates the required mute state. True mutes the microphone, false un-mutes the microphone. |
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |
Remarks
To stop sending audio to the conference, use the stopAudio method.
StartAsync()
Enables the local participant's audio and sends the audio to a conference.
Declaration
public async Task StartAsync()
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |
StopAsync()
Disables the local participant's audio and stops sending the audio to a conference.
Declaration
public async Task StopAsync()
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |