Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release PR #2278

Merged
merged 10 commits into from
Jun 17, 2024
9 changes: 8 additions & 1 deletion components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,18 @@ export const Tabs: React.FC<TabsProps> = ({ items, id, isSelector = false }) =>
}}
type="button"
style={{
color: !isSelector
? 'var(--docs_text_primary)'
: tab === i
? 'var(--docs_text_primary)'
: 'var(--docs_text_secondary)',
fontWeight: tab === i ? 'bold' : 'normal',
background: 'none',
outline: 'none',
cursor: 'pointer',
border: 'none',
borderBottom: tab === i && !isSelector ? '2px solid var(--gray12)' : 'none',
borderBottom:
tab === i && !isSelector ? '2px solid var(--selector_blue)' : 'none',
padding: isSelector ? '5px 12px' : '0',
borderRadius: isSelector ? '4px' : '0',
backgroundColor:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Custom Video Effects (Beta)
title: Custom Video Effects
nav: 12.1
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Virtual Background (Beta)
title: Virtual Background
nav: 12.2
---

Expand All @@ -18,7 +18,7 @@ This guide provides an overview of usage of the Virtual Background plugin of 100

- Minimum iOS version required to support Virtual Background plugin is iOS 15
- Minimum 100ms SDK version required is `0.3.1`
- Virtual background plugin is in beta stage and may have performance issues on iPhone X, 8, 7, 6 and other older devices. We recommend that you use this feature on a high performance device for smooth experience.
- Virtual background plugin may have performance issues on iPhone X, 8, 7, 6 and other older devices. We recommend that you use this feature on a high performance device for smooth experience.

## How to enable virtual background in your app using HMSSDK

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Show Audio Levels
nav: 4.46
---

## Audio Level

The audio level for every speaking peer can be retrieved by listening to 'onUpdatedSpeakers' callback in 'HMSUpdateListener', like so.

```swift
public func on(updated speakers: [HMSSpeaker]) {
if let firstSpeakingPeer = speakers.first {
let audioLevel = firstSpeakingPeer.level
// Use this audio level
// level : `Int` The level of the audio. It may vary from 0-100. A higher value indicates a higher speaking volume.
...
}
}
```

Note: on(updated speakers) is called when set of speaking peers change in the conference call. These are called active speakers. If you'd live to know the current dominant speaker, you can just get the first speaker in the list as the speaker list is sorted based on their audio levels, that is, loudest speaker is first in the list.
Loading