mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
Fix missing screen share player
This commit is contained in:
1 parent
42190909e3
commit
acdc7a2330
6 files changed
+70
-38
No files matched your search
@@ -139,3 +139,16 @@ test("ICE configuration belongs to each controller independently", async () => {
|
||||
]);
|
||||
} finally { second.stopTransport(false); }
|
||||
});
|
||||
|
||||
test("viewer visibility follows the selected stream so the player and card cannot disagree", async () => {
|
||||
assert.equal(controller.api.screenShareViewing.value, false);
|
||||
assert.equal(controller.api.screenShareViewingStreamId.value, "");
|
||||
|
||||
controller.handleMessage({ type: "screenShareJoined", stream: remote });
|
||||
assert.equal(controller.api.screenShareViewing.value, true);
|
||||
assert.equal(controller.api.screenShareViewingStreamId.value, remote.streamId);
|
||||
|
||||
controller.handleMessage({ type: "screenShareStopped", streamId: remote.streamId });
|
||||
assert.equal(controller.api.screenShareViewing.value, false);
|
||||
assert.equal(controller.api.screenShareViewingStreamId.value, "");
|
||||
});
|
||||
Reference in new issue
Block a user