-
- Exit
-
+ <>
+
+
+ Exit
+
+ {!loading && production && line && (
+
+ Production: {production.name}{" "}
+ Line: {line.name}
+
+ )}
+
+
{loading &&
}
+
{!loading && (
- <>
-
Production View
-
- setMicMute(!micMute)}>
- {micMute ? : }
-
-
-
- {audioElements.length && (
-
Incoming Audio Channels: {audioElements.length}
- )}
- {connectionState && (
-
RTC Connection State: {connectionState}
- )}
-
-
- >
+
+
+
+ Controls
+
+ {audioElements.length && (
+
+ Incoming Audio Channels: {audioElements.length}
+
+ )}
+ {connectionState && (
+ RTC Connection State: {connectionState}
+ )}
+
+
+ setMicMute(!micMute)}
+ >
+ {micMute ? : }
+
+
+
+
+
+ {line && }
+
+
)}
-
+ >
);
};
diff --git a/src/components/production-line/types.ts b/src/components/production-line/types.ts
index ddbde4a2..5493d2ff 100644
--- a/src/components/production-line/types.ts
+++ b/src/components/production-line/types.ts
@@ -10,19 +10,19 @@ export type TJoinProductionOptions = {
export type TParticipant = {
name: string;
- active: boolean;
+ sessionid: string;
+ isActive: boolean;
};
export type TLine = {
name: string;
- id: number;
- connected: boolean;
+ id: string;
participants: TParticipant[];
};
export type TBasicProduction = {
name: string;
- id: number;
+ productionid: string;
};
export type TProduction = TBasicProduction & {
diff --git a/src/components/production-line/user-list.tsx b/src/components/production-line/user-list.tsx
index 36a00e22..fb5c77ec 100644
--- a/src/components/production-line/user-list.tsx
+++ b/src/components/production-line/user-list.tsx
@@ -1,5 +1,6 @@
import styled from "@emotion/styled";
import { DisplayContainerHeader } from "../landing-page/display-container-header.tsx";
+import { TParticipant } from "./types.ts";
const ListWrapper = styled.div`
padding: 1rem;
@@ -12,7 +13,6 @@ const User = styled.div`
color: #ddd;
max-width: 32rem;
display: flex;
- align-items: center;
`;
const GreenCircle = styled.div`
@@ -25,7 +25,7 @@ const GreenCircle = styled.div`
`;
type TUserListOptions = {
- participants: { name: string; sessionid: string }[] | null;
+ participants: TParticipant[];
};
export const UserList = ({ participants }: TUserListOptions) => {
if (!participants) return null;