Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions pages/Unity/methods/audio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,30 @@ private void DisableAudio()
_huddleClientInstance.DisableAudio();
}

```

### Change Audio device for native platforms

The ChangeAudioDevice method change the input audio media source

```csharp

private void ChangeAudioSource(string deviceId)
{
_huddleClientInstance.ChangeAudioDevice(deviceId);
}

```

### Change Audio device for Webgl platform

The ChangeAudioDevice method change the input audio media source

```csharp

private void ChangeAudioSource(string deviceId)
{
_huddleClientInstance.ChangeMicTrackForWebgl(deviceId);
}

```
5 changes: 4 additions & 1 deletion pages/Unity/methods/init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ private string _roomId; // Assign from inspector
[SerializeField]
private string _projectId; // Assign from inspector

[SerializeField]
private string _autoConsume; // Assign from inspector

void Init()
{
#if UNITY_WEBGL
HuddleClient.Instance.InitForWebgl(_projectId, _roomId);
HuddleClient.Instance.InitForWebgl(_projectId, _roomId,_autoConsume);
#else
HuddleClient.Instance.InitForNative(_projectId, _roomId, _deviceHandler);
#endif
Expand Down
26 changes: 26 additions & 0 deletions pages/Unity/methods/video.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,30 @@ private void DisableVideo()
_huddleClientInstance.DisableVideo();
}

```

### Change Video device for native platforms

The ChangeVideoDevice method change the input viedo media source

```csharp

private void ChangeVideoDevice(string deviceId)
{
_huddleClientInstance.ChangeVideoDevice(deviceId);
}

```

### Change Video device for Webgl platform

The ChangeVideoDevice method change the input viedo media source

```csharp

private void ChangeVideoDevice(string deviceId)
{
_huddleClientInstance.ChangeCamTrackForWebgl(deviceId);
}

```