Active speaker tracking first draft

This commit is contained in:
Robert Long
2021-09-01 16:42:01 -07:00
parent 8c7c298b31
commit 99ecb8aa28
7 changed files with 186 additions and 39 deletions

View File

@@ -7,6 +7,8 @@ import { ReactComponent as VideoIcon } from "./icons/Video.svg";
import { ReactComponent as DisableVideoIcon } from "./icons/DisableVideo.svg";
import { ReactComponent as HangupIcon } from "./icons/Hangup.svg";
import { ReactComponent as SettingsIcon } from "./icons/Settings.svg";
import { ReactComponent as GridIcon } from "./icons/Grid.svg";
import { ReactComponent as SpeakerIcon } from "./icons/Speaker.svg";
export function RoomButton({ on, className, children, ...rest }) {
return (
@@ -66,3 +68,15 @@ export function SettingsButton(props) {
</HeaderButton>
);
}
export function LayoutToggleButton({ layout, ...rest }) {
return (
<HeaderButton {...rest}>
{layout === "spotlight" ? (
<SpeakerIcon width={20} height={20} />
) : (
<GridIcon width={20} height={20} />
)}
</HeaderButton>
);
}