Disable Record with one participant

Hello,

is there a way to activate the jibri record when the number of participants is higher than 2,

I can do that from the client side but how can I know the count of the particpaint of a room in the client side, if not you no idea how to do that

Thanks

You may modify this prosody module

thanks for your replay but i would show hide button in toolbar based on condition count(particpaint) > 1

APP.conference.membersCount

Hello, thank you

but when i call this method in Toolbox.js i get a error i do like this :

declare var APP: Object;
console.log( APP.conference.membersCount)

2022-05-29T17:43:32.455Z [features/base/app] <APP.componentDidCatch>: TypeError: Cannot read properties of undefined (reading ‘getParticipants’)
at get membersCount [as membersCount] (conference.js:1131:21)
at s4._renderToolboxContent (Toolbox.js:1267:58)
at s4.render (Toolbox.js:459:23)
at Xo (react-dom.production.min.js:181:192)
at Jo (react-dom.production.min.js:180:282)
at Ts (react-dom.production.min.js:261:396)
at yl (react-dom.production.min.js:230:22)
at gl (react-dom.production.min.js:229:362)
at ll (react-dom.production.min.js:223:216)
at react-dom.production.min.js:121:115
at t.unstable_runWithPriority (scheduler.production.min.js:18:437)
at Gr (react-dom.production.min.js:120:325)
at Jr (react-dom.production.min.js:121:61)
at $r (react-dom.production.min.js:120:496)
at al (react-dom.production.min.js:214:156)
at Object.enqueueSetState (react-dom.production.min.js:133:237)
at k.setState (react.production.min.js:13:231)
at BaseApp.js:253:18
at new Promise ()

TypeError: Cannot read properties of undefined (reading ‘getParticipants’)
at get membersCount [as membersCount] (conference.js:1131:21)
at s4._renderToolboxContent (Toolbox.js:1267:58)
at s4.render (Toolbox.js:459:23)
at Xo (react-dom.production.min.js:181:192)
at Jo (react-dom.production.min.js:180:282)
at Ts (react-dom.production.min.js:261:396)
at yl (react-dom.production.min.js:230:22)
at gl (react-dom.production.min.js:229:362)
at ll (react-dom.production.min.js:223:216)
at react-dom.production.min.js:121:115
at t.unstable_runWithPriority (scheduler.production.min.js:18:437)
at Gr (react-dom.production.min.js:120:325)
at Jr (react-dom.production.min.js:121:61)
at $r (react-dom.production.min.js:120:496)
at al (react-dom.production.min.js:214:156)
at Object.enqueueSetState (react-dom.production.min.js:133:237)
at k.setState (react.production.min.js:13:231)
at BaseApp.js:253:18
at new Promise ()
at APP._navigate (BaseApp.js:252:16)
at middleware.js:154:48