UNPKG

@zoom/meetingsdk

Version:
1 lines 1.86 kB
"use strict";(self.webpackChunk_zoom_webclientjs=self.webpackChunk_zoom_webclientjs||[]).push([[2040],{45226:(e,o,n)=>{n.d(o,{T:()=>r,Y:()=>c});const c="luna://com.webos.service.hccmanager",r="Remote Controller"},82040:(e,o,n)=>{n.r(o),n.d(o,{cancelRecordVoiceIfLeavingRemoteControllerForLG:()=>t,startRecordVoiceForMicChange:()=>i});var c=n(39560),r=n(45226),l=(e,o,n)=>new Promise((c,r)=>{var l=e=>{try{t(n.next(e))}catch(o){r(o)}},i=e=>{try{t(n.throw(e))}catch(o){r(o)}},t=e=>e.done?c(e.value):Promise.resolve(e.value).then(l,i);t((n=n.apply(e,o)).next())});function i(e){return l(this,null,function*(){var o,l;if(!(0,c.DCm)())return;if(!(null!=(l=null==(o=null==e?void 0:e.label)?void 0:o.includes(r.T))&&l))return;const{startRecordVoiceSubscription:i}=yield n.e(9030).then(n.bind(n,57740));try{yield i({subscribe:!0,socketType:"none"})}catch(t){}})}function t(e){return l(this,null,function*(){var o,l;if(!(0,c.DCm)())return;const i=null!=(l=null==(o=null==e?void 0:e.label)?void 0:o.includes(r.T))&&l;if(console.warn("[LG-mic] cancelRecordVoiceIfLeavingRemoteControllerForLG \u2014 branch",{nextId:null==e?void 0:e.deviceId,nextLabel:null==e?void 0:e.label,isNextRemoteControllerMic:i,willAttemptCancelPath:!i}),i)return void console.warn("[LG-mic] cancelRecordVoiceIfLeavingRemoteControllerForLG \u2014 skip",{reason:"next_still_remote_controller"});const{getInRecordVoiceSession:t,cancelRecordVoiceSubscription:s}=yield n.e(9030).then(n.bind(n,57740)),a=t();console.warn("[LG-mic] cancelRecordVoiceIfLeavingRemoteControllerForLG \u2014 session",{inRecordVoiceSession:a}),a?(console.warn("[LG-mic] cancelRecordVoiceIfLeavingRemoteControllerForLG \u2014 calling cancelRecordVoiceSubscription"),s()):console.warn("[LG-mic] cancelRecordVoiceIfLeavingRemoteControllerForLG \u2014 skip: not in record voice session (getInRecordVoiceSession is false)")})}}}]);