Skip to content

Commit 14afdfb

Browse files
committed
feat: state management for screen share
1 parent 83d757c commit 14afdfb

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

release.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
rm ~/Desktop/org.pozil.restream.streamDeckPlugin
1+
#!/bin/bash
2+
DIST_FILE_PATH=~/Desktop/org.pozil.restream.streamDeckPlugin
3+
4+
# Remove old distribution
5+
if [ -f $DIST_FILE_PATH ]; then
6+
rm $DIST_FILE_PATH
7+
echo "Removed existing distribution file"
8+
fi
9+
10+
# Build new distribution
211
./DistributionTool -b -i src/org.pozil.restream.sdPlugin -o ~/Desktop/
12+
echo "Built location: $DIST_FILE_PATH"

src/org.pozil.restream.sdPlugin/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ function handleStateUpdate(state) {
155155
const {
156156
isMicEnabled,
157157
isCameraEnabled,
158+
isSharingScreen,
158159
activeLayoutIndex,
159160
sources,
160161
activeOverlayIndex,
@@ -166,6 +167,10 @@ function handleStateUpdate(state) {
166167
forActionsOfType(ACTION_TOGGLE_CAM, action => {
167168
$SD.setState(action.context, isCameraEnabled ? 0 : 1);
168169
});
170+
// Screen sharing
171+
forActionsOfType(ACTION_TOGGLE_SHARE_SCREEN, action => {
172+
$SD.setState(action.context, isSharingScreen ? 0 : 1);
173+
});
169174
// Layout
170175
forActionsOfType(ACTION_TOGGLE_LAYOUT, action => {
171176
const layoutIndex = Number.parseInt(action.payload.settings.layoutIndex, 10);

src/org.pozil.restream.sdPlugin/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Name": "Stream Deck Restream Plugin",
77
"Icon": "icon",
88
"URL": "https://www.elgato.com/en/gaming/stream-deck",
9-
"Version": "1.0.2",
9+
"Version": "1.1.0",
1010
"Software": {
1111
"MinimumVersion": "5.0"
1212
},

0 commit comments

Comments
 (0)