Skip to content

Commit

Permalink
[Docs] remove duplicated part
Browse files Browse the repository at this point in the history
  • Loading branch information
sierpinskid committed Nov 23, 2023
1 parent db45b87 commit 6597ab4
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions docusaurus/docs/Unity/02-tutorials/02-audio-room.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -547,25 +547,6 @@ After completing this step, your `UIManager` game object should look as below:

**Save the scene.**

Open the `AudioRoomsManager.cs` script, and add the `JoinCallAsync` and the `LeaveCallAsync` methods:
```csharp
public async Task JoinCallAsync(string callId)
{
_activeCall = await _client.JoinCallAsync(StreamCallType.AudioRoom, callId, create: true, ring: false, notify: false);
}

public async Task LeaveCallAsync()
{
if (_activeCall == null)
{
Debug.LogWarning("Leave request ignored. There is no active call to leave.");
return;
}

await _activeCall.LeaveAsync();
}
```

### Step 8 - Handling call participants

The last important feature to implement is handling **participants** and their **tracks**. Call **participants** are users who joined through one or multiple devices. **Tracks** represent either **Audio** or **Video** data received from a **participant**. In this tutorial, we'll be using audio tracks only.
Expand Down

0 comments on commit 6597ab4

Please sign in to comment.