+
{channel?.properties.name}
{clients?.map((client) => {
if (client) {
return (
-
- {client.talkStatus === 1 ? "🎤" : ""}
- {client.properties.inputMuted ? "🎤x" : ""}
- {client.properties.outputMuted ? "🔈" : ""}
- {client.id} {client.properties.nickname}
-
+
+ {client.properties.outputMuted ? (
+
+ ) : client.properties.inputMuted ? (
+
+ ) : client.talkStatus == 1 ? (
+
+ ) : (
+
+ )}
+
{client.properties.nickname}
+
);
} else {
return <>>;
diff --git a/src/styles/Viewer.scss b/src/styles/Viewer.scss
new file mode 100644
index 0000000..0ea77d7
--- /dev/null
+++ b/src/styles/Viewer.scss
@@ -0,0 +1,24 @@
+.viewer {
+ display: flex;
+ flex-direction: column;
+ gap: 0 0;
+ h3 {
+ font-size: 1.3rem;
+ margin-bottom: 10px;
+ }
+
+ .client {
+ display: flex;
+ height: 30px;
+ align-items: center;
+ gap: 0 10px;
+
+ svg {
+ width: 23px;
+ height: 23px;
+ }
+ p {
+ font-size: 1rem;
+ }
+ }
+}
diff --git a/src/styles/index.scss b/src/styles/index.scss
index e69de29..9c18e58 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -0,0 +1,4 @@
+* {
+ font-family: Arial, Helvetica, sans-serif;
+ font-weight: bold;
+}
diff --git a/src/teamspeak5Handler.ts b/src/teamspeak5Handler.ts
index f449de4..02c1256 100644
--- a/src/teamspeak5Handler.ts
+++ b/src/teamspeak5Handler.ts
@@ -434,7 +434,10 @@ class TS5MessageHandler {
}
handleClientSelfPropertyUpdatedMessage(data: IClientSelfPropertyUpdatedMessage) {
console.log("handleClientSelfPropertyUpdated", data);
- this.setActiveConnectionId(data.payload.connectionId);
+
+ if (data.payload.flag == "inputHardware") { // sadly thats the only way to detect if a server is active or not
+ this.setActiveConnectionId(data.payload.connectionId);
+ }
}
handleServerPropertiesUpdatedMessage(data: IServerPropertiesUpdatedMessage) {