mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
fix(skins): expose screen-share status to custom members
This commit is contained in:
1 parent
7fe8719812
commit
8b5db8af1f
20 files changed
+295
-41
No files matched your search
@@ -85,7 +85,15 @@
|
||||
},
|
||||
"disconnect": { "type": "voice.disconnect", "args": {} },
|
||||
"whisper-on": { "type": "voice.setWhisperActive", "args": { "active": true } },
|
||||
"whisper-off": { "type": "voice.setWhisperActive", "args": { "active": false } }
|
||||
"whisper-off": { "type": "voice.setWhisperActive", "args": { "active": false } },
|
||||
"watch-screen-share": {
|
||||
"type": "voice.joinScreenShare",
|
||||
"args": { "streamId": "{{member.screenShareStreamId}}" }
|
||||
},
|
||||
"watch-channel-member-screen-share": {
|
||||
"type": "voice.joinScreenShare",
|
||||
"args": { "streamId": "{{voicemember.screenShareStreamId}}" }
|
||||
}
|
||||
},
|
||||
"state": { "selectedchannel": "", "message": "" },
|
||||
"root": {
|
||||
@@ -227,6 +235,22 @@
|
||||
"when": { "path": "voicemember.speaking", "equals": true },
|
||||
"attributes": { "aria-label": "Speaking" },
|
||||
"children": [{ "text": "●" }]
|
||||
},
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "channel-member-screen-share",
|
||||
"when": { "path": "voicemember.screenSharing", "equals": true },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "channel-member-screen-share-live", "children": [{ "text": "SHARING" }] },
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "channel-member-screen-share-watch",
|
||||
"when": { "path": "voicemember.self", "equals": false },
|
||||
"attributes": { "type": "button", "aria-label": "Watch {{voicemember.name}}'s screen" },
|
||||
"events": { "click": "watch-channel-member-screen-share" },
|
||||
"children": [{ "text": "WATCH" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -363,6 +387,22 @@
|
||||
"when": { "path": "member.status", "equals": "away" },
|
||||
"attributes": { "aria-label": "Away" },
|
||||
"children": [{ "text": "AWAY" }]
|
||||
},
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "member-screen-share",
|
||||
"when": { "path": "member.screenSharing", "equals": true },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "member-screen-share-live", "children": [{ "text": "SHARING" }] },
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "member-screen-share-watch",
|
||||
"when": { "path": "member.self", "equals": false },
|
||||
"attributes": { "type": "button", "aria-label": "Watch {{member.name}}'s screen" },
|
||||
"events": { "click": "watch-screen-share" },
|
||||
"children": [{ "text": "WATCH" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user