Skip to content

Commit 0693853

Browse files
committed
Adding send-state sub-entry for getting only program/preview (#159)
1 parent 519dbe0 commit 0693853

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ Feedback: Enabled for `/atem/hyperdeck/$i/clip`. The state of the HyperDeck is
285285

286286
- **Request all feedback available** `/atem/send-status`
287287
- This will query the switcher and send back the status for the program/preview, transition control, keyers, and macros
288+
- **Request only Program/Preview/Bar status** `/atem/send-status/mix-effect-block`
289+
- This will query the switcher and send back the status for only program/preview, bar, and preview
288290
- e.g. This can be used when a new OSC client device is brought online, so that it gets the current status of the system
289291

290292
### Type Casting

atemOSC/OSCReceiver.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ - (instancetype) initWithDelegate:(AppDelegate *) delegate
143143
[appDel sendStatus];
144144
}];
145145

146+
[self addEndpoint:@"/atem/send-status/mix-effect-block" handler:^void(NSDictionary *d, OSCValue *v) {
147+
[appDel mMixEffectBlockMonitor]->sendStatus();
148+
}];
149+
146150
[self addEndpoint:@"/atem/preview" valueType: OSCValInt handler:^void(NSDictionary *d, OSCValue *v) {
147151
activateChannel([v intValue], false);
148152
}];

0 commit comments

Comments
 (0)