@louis-qode/mediasoup 1.1.30 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/RoomContext.js +2 -1
- package/dist/context/TrackContext.js +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/lib/cookiesManager.js +1 -1
- package/dist/lib/deviceInfo.js +1 -1
- package/dist/lib/e2e.js +1 -1
- package/dist/lib/logger.js +1 -1
- package/dist/lib/monitor.js +1 -1
- package/dist/lib/roomClient.d.ts +7 -3
- package/dist/lib/roomClient.js +2 -1
- package/dist/lib/roomStatus.d.ts +37 -0
- package/dist/lib/roomStatus.js +2 -0
- package/dist/lib/urlFactory.d.ts +1 -1
- package/dist/lib/urlFactory.js +1 -1
- package/dist/redux/reducers/consumers.js +1 -1
- package/dist/redux/reducers/dataConsumers.js +1 -1
- package/dist/redux/reducers/dataProducers.js +1 -1
- package/dist/redux/reducers/index.js +1 -1
- package/dist/redux/reducers/me.d.ts +23 -2
- package/dist/redux/reducers/me.js +1 -1
- package/dist/redux/reducers/notifications.js +1 -1
- package/dist/redux/reducers/peers.js +1 -1
- package/dist/redux/reducers/producers.js +1 -1
- package/dist/redux/reducers/room.js +1 -1
- package/dist/redux/requestActions.js +1 -1
- package/dist/redux/stateActions.d.ts +44 -1
- package/dist/redux/stateActions.js +1 -1
- package/dist/redux/store.js +1 -1
- package/dist/redux/types.d.ts +35 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MeState, Device, ReduxAction } from '../types';
|
|
1
|
+
import { MeState, Device, DeviceInfo, ReduxAction } from '../types';
|
|
2
2
|
export interface SetRoomStatePayload {
|
|
3
3
|
state: string;
|
|
4
4
|
}
|
|
@@ -15,9 +15,30 @@ export interface SetMediaCapabilitiesPayload {
|
|
|
15
15
|
export interface SetCanChangeWebcamPayload {
|
|
16
16
|
[key: string]: boolean;
|
|
17
17
|
}
|
|
18
|
+
export interface SetCanChangeMicrophonePayload {
|
|
19
|
+
flag: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface SetMicrophoneDevicesPayload {
|
|
22
|
+
devices: DeviceInfo[];
|
|
23
|
+
activeDeviceId: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface SetWebcamDevicesPayload {
|
|
26
|
+
devices: DeviceInfo[];
|
|
27
|
+
activeDeviceId: string | null;
|
|
28
|
+
resolution: string;
|
|
29
|
+
}
|
|
18
30
|
export interface SetWebcamInProgressPayload {
|
|
19
31
|
flag: boolean;
|
|
20
32
|
}
|
|
33
|
+
export interface SetWebcamChangingPayload {
|
|
34
|
+
flag: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface SetMicrophoneInProgressPayload {
|
|
37
|
+
flag: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface SetMicrophoneChangingPayload {
|
|
40
|
+
flag: boolean;
|
|
41
|
+
}
|
|
21
42
|
export interface SetShareInProgressPayload {
|
|
22
43
|
flag: boolean;
|
|
23
44
|
}
|
|
@@ -36,6 +57,6 @@ export interface SetAudioMutedStatePayload {
|
|
|
36
57
|
export interface SetRestartIceInProgressPayload {
|
|
37
58
|
flag: boolean;
|
|
38
59
|
}
|
|
39
|
-
export type MeAction = ReduxAction<'SET_ROOM_STATE', SetRoomStatePayload> | ReduxAction<'SET_ME', SetMePayload> | ReduxAction<'SET_MEDIA_CAPABILITIES', SetMediaCapabilitiesPayload> | ReduxAction<'SET_CAN_CHANGE_WEBCAM', boolean> | ReduxAction<'SET_WEBCAM_IN_PROGRESS', SetWebcamInProgressPayload> | ReduxAction<'SET_SHARE_IN_PROGRESS', SetShareInProgressPayload> | ReduxAction<'SET_DISPLAY_NAME', SetDisplayNamePayload> | ReduxAction<'SET_AUDIO_ONLY_STATE', SetAudioOnlyStatePayload> | ReduxAction<'SET_AUDIO_ONLY_IN_PROGRESS', SetAudioOnlyInProgressPayload> | ReduxAction<'SET_AUDIO_MUTED_STATE', SetAudioMutedStatePayload> | ReduxAction<'SET_RESTART_ICE_IN_PROGRESS', SetRestartIceInProgressPayload>;
|
|
60
|
+
export type MeAction = ReduxAction<'SET_ROOM_STATE', SetRoomStatePayload> | ReduxAction<'SET_ME', SetMePayload> | ReduxAction<'SET_MEDIA_CAPABILITIES', SetMediaCapabilitiesPayload> | ReduxAction<'SET_CAN_CHANGE_WEBCAM', boolean> | ReduxAction<'SET_CAN_CHANGE_MICROPHONE', boolean> | ReduxAction<'SET_MICROPHONE_DEVICES', SetMicrophoneDevicesPayload> | ReduxAction<'SET_WEBCAM_DEVICES', SetWebcamDevicesPayload> | ReduxAction<'SET_WEBCAM_IN_PROGRESS', SetWebcamInProgressPayload> | ReduxAction<'SET_WEBCAM_CHANGING', SetWebcamChangingPayload> | ReduxAction<'SET_MICROPHONE_IN_PROGRESS', SetMicrophoneInProgressPayload> | ReduxAction<'SET_MICROPHONE_CHANGING', SetMicrophoneChangingPayload> | ReduxAction<'SET_SHARE_IN_PROGRESS', SetShareInProgressPayload> | ReduxAction<'SET_DISPLAY_NAME', SetDisplayNamePayload> | ReduxAction<'SET_AUDIO_ONLY_STATE', SetAudioOnlyStatePayload> | ReduxAction<'SET_AUDIO_ONLY_IN_PROGRESS', SetAudioOnlyInProgressPayload> | ReduxAction<'SET_AUDIO_MUTED_STATE', SetAudioMutedStatePayload> | ReduxAction<'SET_RESTART_ICE_IN_PROGRESS', SetRestartIceInProgressPayload>;
|
|
40
61
|
declare const me: (state: MeState, action: MeAction) => MeState;
|
|
41
62
|
export default me;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3febb8,_0x167e24){const _0x1b95f9=_0x23e1,_0xb19425=_0x3febb8();while(!![]){try{const _0x2f6263=-parseInt(_0x1b95f9(0x10e))/0x1*(-parseInt(_0x1b95f9(0x112))/0x2)+parseInt(_0x1b95f9(0x10b))/0x3+-parseInt(_0x1b95f9(0x116))/0x4+-parseInt(_0x1b95f9(0x114))/0x5*(-parseInt(_0x1b95f9(0x118))/0x6)+-parseInt(_0x1b95f9(0x110))/0x7*(parseInt(_0x1b95f9(0x115))/0x8)+-parseInt(_0x1b95f9(0x109))/0x9*(parseInt(_0x1b95f9(0x10c))/0xa)+parseInt(_0x1b95f9(0x106))/0xb*(parseInt(_0x1b95f9(0x11a))/0xc);if(_0x2f6263===_0x167e24)break;else _0xb19425['push'](_0xb19425['shift']());}catch(_0x41a999){_0xb19425['push'](_0xb19425['shift']());}}}(_0x3cb7,0xa24ee));function _0x23e1(_0x4a0b1e,_0x542983){_0x4a0b1e=_0x4a0b1e-0xfb;const _0x3cb78a=_0x3cb7();let _0x23e1e7=_0x3cb78a[_0x4a0b1e];if(_0x23e1['RKtcht']===undefined){var _0xfacc90=function(_0x561846){const _0x7c0e9c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50d5c2='',_0x72dfac='';for(let _0x148f41=0x0,_0x21516f,_0x2d8300,_0x579c81=0x0;_0x2d8300=_0x561846['charAt'](_0x579c81++);~_0x2d8300&&(_0x21516f=_0x148f41%0x4?_0x21516f*0x40+_0x2d8300:_0x2d8300,_0x148f41++%0x4)?_0x50d5c2+=String['fromCharCode'](0xff&_0x21516f>>(-0x2*_0x148f41&0x6)):0x0){_0x2d8300=_0x7c0e9c['indexOf'](_0x2d8300);}for(let _0x296fef=0x0,_0x4d8b4f=_0x50d5c2['length'];_0x296fef<_0x4d8b4f;_0x296fef++){_0x72dfac+='%'+('00'+_0x50d5c2['charCodeAt'](_0x296fef)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x72dfac);};_0x23e1['ESSumw']=_0xfacc90,_0x23e1['tOneEq']={},_0x23e1['RKtcht']=!![];}const _0x713fe8=_0x3cb78a[0x0],_0x43c772=_0x4a0b1e+_0x713fe8,_0x50f43f=_0x23e1['tOneEq'][_0x43c772];return!_0x50f43f?(_0x23e1e7=_0x23e1['ESSumw'](_0x23e1e7),_0x23e1['tOneEq'][_0x43c772]=_0x23e1e7):_0x23e1e7=_0x50f43f,_0x23e1e7;}function _0x3cb7(){const _0x12084a=['mZq2ohfQt3jHza','u0vux01f','mtq4mJvUt0DgzhO','mJGWqunor2zf','mtmXmJi0BNvMy3nc','DhLWzq','ntrJEhPLvxm','u0vux1DfqKnbtv9ervzjq0vt','nZy5mMX6vKHvqG','u0vux1DfqKnbtv9dsefor0LorW','u0vux01jq1jpueHptKvFq0HbtKDjtKC','zgLZCgXHEu5HBwu','u0vux01jq1jpueHptKvFrevwsunfuW','u0vux1jfu1rbuLrFsunfx0Lox1bst0Dsrvnt','u0vux01jq1jpueHptKvFsu5Fufjpr1jfu1m','u0vux0fvreLpx09otfLFu1rbveu','y2XVC2vK','u0vux0fvreLpx01vvevex1nuqvrf','u0vux0nbtL9dsefor0vFtuLduK9qse9orq','Cgf5Bg9Hza','ndy0mM1mC2fOCG','u0vux0rju1bmqvLFtKfnrq','u0vux0fvreLpx09otfLFsu5Fufjpr1jfu1m','mte5mZm5ndzwsxfLEu8','C3rHDgu','mZK0nJqXovH3tuvTwG','mtbqvMjvz0u','u0vux1niqvjfx0Lox1bst0Dsrvnt','nti2rxbJz3rd','u0vux1jpt01Fu1rbveu','mtaWmJi2A3HkyNbL','u0vux01freLbx0nbuefcsuXjveLfuW'];_0x3cb7=function(){return _0x12084a;};return _0x3cb7();}const initialState={'id':null,'displayName':null,'displayNameSet':![],'device':null,'canSendMic':![],'canSendWebcam':![],'canChangeWebcam':![],'canChangeMicrophone':![],'microphones':[],'activeMicDeviceId':null,'webcams':[],'activeWebcamDeviceId':null,'webcamResolution':'hd','webcamInProgress':![],'webcamChanging':![],'microphoneInProgress':![],'microphoneChanging':![],'shareInProgress':![],'audioOnly':![],'audioOnlyInProgress':![],'audioMuted':![],'restartIceInProgress':![]},me=(_0x50d5c2=initialState,_0x72dfac)=>{const _0x26bdc8=_0x23e1;switch(_0x72dfac[_0x26bdc8(0x117)]){case _0x26bdc8(0x10f):{const _0x148f41=_0x72dfac[_0x26bdc8(0x105)][_0x26bdc8(0x10a)];return _0x148f41===_0x26bdc8(0x102)?{..._0x50d5c2,'webcamInProgress':![],'webcamChanging':![],'microphoneInProgress':![],'microphoneChanging':![],'shareInProgress':![],'audioOnly':![],'audioOnlyInProgress':![],'audioMuted':![],'restartIceInProgress':![]}:_0x50d5c2;}case _0x26bdc8(0x113):{const {peerId:_0x21516f,displayName:_0x2d8300,displayNameSet:_0x579c81,device:_0x296fef}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'id':_0x21516f,'displayName':_0x2d8300,'displayNameSet':_0x579c81,'device':_0x296fef};}case _0x26bdc8(0x111):{const {canSendMic:_0x4d8b4f,canSendWebcam:_0x313f46}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'canSendMic':_0x4d8b4f,'canSendWebcam':_0x313f46};}case'SET_CAN_CHANGE_WEBCAM':{const _0x338782=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'canChangeWebcam':_0x338782};}case _0x26bdc8(0x104):{const _0x5d3878=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'canChangeMicrophone':_0x5d3878};}case _0x26bdc8(0xfe):{const {devices:_0x4bc20d,activeDeviceId:_0xc958e6}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'microphones':_0x4bc20d,'activeMicDeviceId':_0xc958e6};}case _0x26bdc8(0x119):{const {devices:_0x1c1053,activeDeviceId:_0x469fc0,resolution:_0x361754}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'webcams':_0x1c1053,'activeWebcamDeviceId':_0x469fc0,'webcamResolution':_0x361754};}case'SET_WEBCAM_IN_PROGRESS':{const {flag:_0x141391}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'webcamInProgress':_0x141391};}case _0x26bdc8(0xfb):{const {flag:_0xa43898}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'webcamChanging':_0xa43898};}case _0x26bdc8(0x100):{const {flag:_0x457968}=_0x72dfac['payload'];return{..._0x50d5c2,'microphoneInProgress':_0x457968};}case _0x26bdc8(0xfc):{const {flag:_0x5aa314}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'microphoneChanging':_0x5aa314};}case _0x26bdc8(0x10d):{const {flag:_0x30d738}=_0x72dfac['payload'];return{..._0x50d5c2,'shareInProgress':_0x30d738};}case _0x26bdc8(0x107):{let {displayName:_0x30dcd1}=_0x72dfac[_0x26bdc8(0x105)];if(!_0x30dcd1)_0x30dcd1=_0x50d5c2[_0x26bdc8(0xfd)]||'';return{..._0x50d5c2,'displayName':_0x30dcd1,'displayNameSet':!![]};}case _0x26bdc8(0x101):{const {enabled:_0xc90eb2}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'audioOnly':_0xc90eb2};}case _0x26bdc8(0x108):{const {flag:_0x2bfef2}=_0x72dfac['payload'];return{..._0x50d5c2,'audioOnlyInProgress':_0x2bfef2};}case _0x26bdc8(0x103):{const {enabled:_0x361de1}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'audioMuted':_0x361de1};}case _0x26bdc8(0xff):{const {flag:_0x5bfcbc}=_0x72dfac[_0x26bdc8(0x105)];return{..._0x50d5c2,'restartIceInProgress':_0x5bfcbc};}default:return _0x50d5c2;}};export default me;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x464f75,_0x44c2a6){const _0x51fe08=_0x507e,_0x153c63=_0x464f75();while(!![]){try{const _0x2d3072=parseInt(_0x51fe08(0xf8))/0x1+parseInt(_0x51fe08(0xf5))/0x2+-parseInt(_0x51fe08(0xfd))/0x3*(-parseInt(_0x51fe08(0xfe))/0x4)+-parseInt(_0x51fe08(0xf3))/0x5*(parseInt(_0x51fe08(0xfa))/0x6)+-parseInt(_0x51fe08(0xf9))/0x7+parseInt(_0x51fe08(0xf2))/0x8*(-parseInt(_0x51fe08(0xf4))/0x9)+parseInt(_0x51fe08(0xf6))/0xa*(parseInt(_0x51fe08(0xf7))/0xb);if(_0x2d3072===_0x44c2a6)break;else _0x153c63['push'](_0x153c63['shift']());}catch(_0x12b387){_0x153c63['push'](_0x153c63['shift']());}}}(_0x1231,0x4d6e1));function _0x1231(){const _0x23a05b=['nZeYmtzVuLzAwwe','mJr2wMPvC0W','nw9Rr09JEG','nZyXmJi5z2rTzujj','nZqZnZqYz2veCfHI','nZa5ndbRrevjDem','mtiXtKLPuuP6','mZeWnJm4C0j1Exjh','mZa4mZG2neDuqMDVua','nti0mJi2B2rwuhPc','zMLSDgvY','uKvnt1zfx0fmtf9ot1rjrKLdqvrjt05t','ntDArKTny0u'];_0x1231=function(){return _0x23a05b;};return _0x1231();}function _0x507e(_0x1e06b4,_0x1b733a){_0x1e06b4=_0x1e06b4-0xf2;const _0x12315b=_0x1231();let _0x507e86=_0x12315b[_0x1e06b4];if(_0x507e['mYMhdT']===undefined){var _0x11ccf4=function(_0x30809e){const _0x5ce686='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4fd194='',_0x21b90b='';for(let _0x504904=0x0,_0x3deffa,_0x2cbfa4,_0x170485=0x0;_0x2cbfa4=_0x30809e['charAt'](_0x170485++);~_0x2cbfa4&&(_0x3deffa=_0x504904%0x4?_0x3deffa*0x40+_0x2cbfa4:_0x2cbfa4,_0x504904++%0x4)?_0x4fd194+=String['fromCharCode'](0xff&_0x3deffa>>(-0x2*_0x504904&0x6)):0x0){_0x2cbfa4=_0x5ce686['indexOf'](_0x2cbfa4);}for(let _0x4709c7=0x0,_0x4ba412=_0x4fd194['length'];_0x4709c7<_0x4ba412;_0x4709c7++){_0x21b90b+='%'+('00'+_0x4fd194['charCodeAt'](_0x4709c7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21b90b);};_0x507e['MVtcNC']=_0x11ccf4,_0x507e['ewbuok']={},_0x507e['mYMhdT']=!![];}const _0xa93a7e=_0x12315b[0x0],_0xdfb8a9=_0x1e06b4+_0xa93a7e,_0x3ed093=_0x507e['ewbuok'][_0xdfb8a9];return!_0x3ed093?(_0x507e86=_0x507e['MVtcNC'](_0x507e86),_0x507e['ewbuok'][_0xdfb8a9]=_0x507e86):_0x507e86=_0x3ed093,_0x507e86;}const initialState=[],notifications=(_0x4fd194=initialState,_0x21b90b)=>{const _0x1b2c98=_0x507e;switch(_0x21b90b['type']){case'ADD_NOTIFICATION':{const {notification:_0x504904}=_0x21b90b['payload'];return[..._0x4fd194,_0x504904];}case'REMOVE_NOTIFICATION':{const {notificationId:_0x3deffa}=_0x21b90b['payload'];return _0x4fd194[_0x1b2c98(0xfb)](_0x2cbfa4=>_0x2cbfa4['id']!==_0x3deffa);}case _0x1b2c98(0xfc):{return[];}default:return _0x4fd194;}};export default notifications;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x5d52dc,_0x18d78e){const _0x571813=_0x2db3,_0x31a2c5=_0x5d52dc();while(!![]){try{const _0x53a82a=-parseInt(_0x571813(0x160))/0x1+parseInt(_0x571813(0x16c))/0x2*(parseInt(_0x571813(0x16e))/0x3)+parseInt(_0x571813(0x15e))/0x4*(parseInt(_0x571813(0x157))/0x5)+-parseInt(_0x571813(0x169))/0x6+parseInt(_0x571813(0x16f))/0x7+-parseInt(_0x571813(0x163))/0x8*(parseInt(_0x571813(0x168))/0x9)+parseInt(_0x571813(0x16b))/0xa*(parseInt(_0x571813(0x15d))/0xb);if(_0x53a82a===_0x18d78e)break;else _0x31a2c5['push'](_0x31a2c5['shift']());}catch(_0x3f3bfb){_0x31a2c5['push'](_0x31a2c5['shift']());}}}(_0x44c2,0xd8cbd));function _0x2db3(_0x4c35a1,_0x3093e0){_0x4c35a1=_0x4c35a1-0x155;const _0x44c23d=_0x44c2();let _0x2db306=_0x44c23d[_0x4c35a1];if(_0x2db3['fiknwa']===undefined){var _0x4a1b82=function(_0x461a14){const _0xf8712d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51bc55='',_0x12adc7='';for(let _0x50ed82=0x0,_0x25ddaf,_0x9143c3,_0x3dc08f=0x0;_0x9143c3=_0x461a14['charAt'](_0x3dc08f++);~_0x9143c3&&(_0x25ddaf=_0x50ed82%0x4?_0x25ddaf*0x40+_0x9143c3:_0x9143c3,_0x50ed82++%0x4)?_0x51bc55+=String['fromCharCode'](0xff&_0x25ddaf>>(-0x2*_0x50ed82&0x6)):0x0){_0x9143c3=_0xf8712d['indexOf'](_0x9143c3);}for(let _0x3c76eb=0x0,_0xe2d3b8=_0x51bc55['length'];_0x3c76eb<_0xe2d3b8;_0x3c76eb++){_0x12adc7+='%'+('00'+_0x51bc55['charCodeAt'](_0x3c76eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12adc7);};_0x2db3['nlZvVg']=_0x4a1b82,_0x2db3['yCCweR']={},_0x2db3['fiknwa']=!![];}const _0x18cfcc=_0x44c23d[0x0],_0xc9cb89=_0x4c35a1+_0x18cfcc,_0x20c604=_0x2db3['yCCweR'][_0xc9cb89];return!_0x20c604?(_0x2db306=_0x2db3['nlZvVg'](_0x2db306),_0x2db3['yCCweR'][_0xc9cb89]=_0x2db306):_0x2db306=_0x20c604,_0x2db306;}const initialState={},peers=(_0x51bc55=initialState,_0x12adc7)=>{const _0x2a9c15=_0x2db3;switch(_0x12adc7['type']){case _0x2a9c15(0x167):{const _0x50ed82=_0x12adc7['payload'][_0x2a9c15(0x162)];if(_0x50ed82==='closed')return{};else return _0x51bc55;}case'ADD_PEER':{const {peer:_0x25ddaf}=_0x12adc7[_0x2a9c15(0x15c)];return{..._0x51bc55,[_0x25ddaf['id']]:_0x25ddaf};}case _0x2a9c15(0x15b):{const {peerId:_0x9143c3}=_0x12adc7[_0x2a9c15(0x15c)],_0x3dc08f={..._0x51bc55};return delete _0x3dc08f[_0x9143c3],_0x3dc08f;}case _0x2a9c15(0x159):{const {displayName:_0x3c76eb,peerId:_0xe2d3b8}=_0x12adc7['payload'],_0x43b998=_0x51bc55[_0xe2d3b8];if(!_0x43b998)throw new Error(_0x2a9c15(0x170));const _0xc61482={..._0x43b998,'displayName':_0x3c76eb};return{..._0x51bc55,[_0xc61482['id']]:_0xc61482};}case'ADD_CONSUMER':{const {consumer:_0x561904,peerId:_0x211e5e}=_0x12adc7['payload'],_0x2d8dfd=_0x51bc55[_0x211e5e];if(!_0x2d8dfd)throw new Error(_0x2a9c15(0x155));const _0xe3fba4=[..._0x2d8dfd['consumers'],_0x561904['id']],_0x81cc25={..._0x2d8dfd,'consumers':_0xe3fba4};return{..._0x51bc55,[_0x81cc25['id']]:_0x81cc25};}case _0x2a9c15(0x165):{const {consumerId:_0x5a8957,peerId:_0x102ee8}=_0x12adc7['payload'],_0x58256e=_0x51bc55[_0x102ee8];if(!_0x58256e)return _0x51bc55;const _0x51bfb0=_0x58256e['consumers'][_0x2a9c15(0x15f)](_0x5a8957);if(_0x51bfb0===-0x1)throw new Error(_0x2a9c15(0x16a));const _0x25f5ce=_0x58256e['consumers'][_0x2a9c15(0x156)]();_0x25f5ce[_0x2a9c15(0x15a)](_0x51bfb0,0x1);const _0x357f9e={..._0x58256e,'consumers':_0x25f5ce};return{..._0x51bc55,[_0x357f9e['id']]:_0x357f9e};}case _0x2a9c15(0x164):{const {dataConsumer:_0x9495ee,peerId:_0x3e3cf6}=_0x12adc7[_0x2a9c15(0x15c)];if(!_0x3e3cf6)return _0x51bc55;const _0x549677=_0x51bc55[_0x3e3cf6];if(!_0x549677)throw new Error(_0x2a9c15(0x158));const _0x51e241=[..._0x549677[_0x2a9c15(0x166)]||[],_0x9495ee['id']],_0x58ad1d={..._0x549677,'dataConsumers':_0x51e241};return{..._0x51bc55,[_0x58ad1d['id']]:_0x58ad1d};}case _0x2a9c15(0x161):{const {dataConsumerId:_0x561228,peerId:_0x111f53}=_0x12adc7[_0x2a9c15(0x15c)];if(!_0x111f53)return _0x51bc55;const _0x5a91c4=_0x51bc55[_0x111f53];if(!_0x5a91c4)return _0x51bc55;const _0x5f5db8=(_0x5a91c4['dataConsumers']||[])[_0x2a9c15(0x15f)](_0x561228);if(_0x5f5db8===-0x1)throw new Error(_0x2a9c15(0x16d));const _0x27e265=(_0x5a91c4[_0x2a9c15(0x166)]||[])[_0x2a9c15(0x156)]();_0x27e265[_0x2a9c15(0x15a)](_0x5f5db8,0x1);const _0xc13a54={..._0x5a91c4,'dataConsumers':_0x27e265};return{..._0x51bc55,[_0xc13a54['id']]:_0xc13a54};}default:{return _0x51bc55;}}};function _0x44c2(){const _0x279811=['C2XPy2u','nJi1Evz2txLY','BM8GugvLCIbMB3vUzcbMB3iGBMv3ierHDgfdB25ZDw1LCG','u0vux1bfrvjFreLtueXbwv9oqu1f','C3bSAwnL','uKvnt1zfx1bfrvi','Cgf5Bg9Hza','mJjTCgPAwhe','mZuWndrprhvnAge','Aw5KzxHpzG','nte5mJyYy3nvv1rm','uKvnt1zfx0rbvefFq09ou1vnrvi','C3rHDgu','mZe2mJCXmM5JrezXBW','qurex0rbvefFq09ou1vnrvi','uKvnt1zfx0nptLnvtuvs','zgf0yunVBNn1BwvYCW','u0vux1jpt01Fu1rbveu','mJDWCxL1sK4','nJu3oti1mNv6C1LcDG','q29UC3vTzxiGBM90igzVDw5K','ntK1oteXmhr3tNrQyq','mZq2r0rjq3Dr','rgf0yunVBNn1BwvYig5VDcbMB3vUza','mJe3odn6t3PrrMm','mtaYnZaYnK53quDYuW','BM8GugvLCIbMB3vUza','BM8GugvLCIbMB3vUzcbMB3iGBMv3ienVBNn1BwvY'];_0x44c2=function(){return _0x279811;};return _0x44c2();}export default peers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d08a0,_0x4b04b7){const _0x501079=_0x76c5,_0x17eac8=_0x4d08a0();while(!![]){try{const _0x50f3ea=parseInt(_0x501079(0xdf))/0x1+parseInt(_0x501079(0xe4))/0x2+parseInt(_0x501079(0xe3))/0x3+-parseInt(_0x501079(0xde))/0x4+parseInt(_0x501079(0xd6))/0x5*(-parseInt(_0x501079(0xd9))/0x6)+-parseInt(_0x501079(0xd8))/0x7*(parseInt(_0x501079(0xdb))/0x8)+parseInt(_0x501079(0xd3))/0x9*(parseInt(_0x501079(0xdc))/0xa);if(_0x50f3ea===_0x4b04b7)break;else _0x17eac8['push'](_0x17eac8['shift']());}catch(_0x28a8e5){_0x17eac8['push'](_0x17eac8['shift']());}}}(_0x3b47,0xdd0f2));function _0x76c5(_0xa13bb9,_0x4eec3e){_0xa13bb9=_0xa13bb9-0xd3;const _0x3b4797=_0x3b47();let _0x76c5d2=_0x3b4797[_0xa13bb9];if(_0x76c5['XwQYXu']===undefined){var _0x4a3117=function(_0x5664a5){const _0xcde7f2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x333a54='',_0x4c3cbc='';for(let _0x1f5aa6=0x0,_0x4aafb0,_0x2ebe8b,_0x55824d=0x0;_0x2ebe8b=_0x5664a5['charAt'](_0x55824d++);~_0x2ebe8b&&(_0x4aafb0=_0x1f5aa6%0x4?_0x4aafb0*0x40+_0x2ebe8b:_0x2ebe8b,_0x1f5aa6++%0x4)?_0x333a54+=String['fromCharCode'](0xff&_0x4aafb0>>(-0x2*_0x1f5aa6&0x6)):0x0){_0x2ebe8b=_0xcde7f2['indexOf'](_0x2ebe8b);}for(let _0x1fe800=0x0,_0x13d51d=_0x333a54['length'];_0x1fe800<_0x13d51d;_0x1fe800++){_0x4c3cbc+='%'+('00'+_0x333a54['charCodeAt'](_0x1fe800)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c3cbc);};_0x76c5['ItHZRx']=_0x4a3117,_0x76c5['ETwoQo']={},_0x76c5['XwQYXu']=!![];}const _0x3b28ea=_0x3b4797[0x0],_0x4811f0=_0xa13bb9+_0x3b28ea,_0x37efca=_0x76c5['ETwoQo'][_0x4811f0];return!_0x37efca?(_0x76c5d2=_0x76c5['ItHZRx'](_0x76c5d2),_0x76c5['ETwoQo'][_0x4811f0]=_0x76c5d2):_0x76c5d2=_0x37efca,_0x76c5d2;}const initialState={},producers=(_0x333a54=initialState,_0x4c3cbc)=>{const _0x27d0f6=_0x76c5;switch(_0x4c3cbc['type']){case'SET_ROOM_STATE':{const _0x1f5aa6=_0x4c3cbc[_0x27d0f6(0xd5)][_0x27d0f6(0xd4)];if(_0x1f5aa6===_0x27d0f6(0xdd))return{};else return _0x333a54;}case _0x27d0f6(0xe2):{const {producer:_0x4aafb0}=_0x4c3cbc[_0x27d0f6(0xd5)];return{..._0x333a54,[_0x4aafb0['id']]:_0x4aafb0};}case _0x27d0f6(0xe0):{const {producerId:_0x2ebe8b}=_0x4c3cbc[_0x27d0f6(0xd5)],_0x55824d={..._0x333a54};return delete _0x55824d[_0x2ebe8b],_0x55824d;}case _0x27d0f6(0xda):{const {producerId:_0x1fe800}=_0x4c3cbc[_0x27d0f6(0xd5)],_0x13d51d=_0x333a54[_0x1fe800],_0x160077={..._0x13d51d,'paused':!![]};return{..._0x333a54,[_0x1fe800]:_0x160077};}case _0x27d0f6(0xe1):{const {producerId:_0x5acb36}=_0x4c3cbc[_0x27d0f6(0xd5)],_0x126b7e=_0x333a54[_0x5acb36],_0x1de0f9={..._0x126b7e,'paused':![]};return{..._0x333a54,[_0x5acb36]:_0x1de0f9};}case'SET_PRODUCER_TRACK':{const {producerId:_0x53c290,track:_0x27ece7}=_0x4c3cbc[_0x27d0f6(0xd5)],_0x4c2e01=_0x333a54[_0x53c290],_0x4c9509={..._0x4c2e01,'track':_0x27ece7};return{..._0x333a54,[_0x53c290]:_0x4c9509};}case _0x27d0f6(0xd7):{const {producerId:_0x4d8785,score:_0x5652ca}=_0x4c3cbc[_0x27d0f6(0xd5)],_0x365263=_0x333a54[_0x4d8785];if(!_0x365263)return _0x333a54;const _0x187415={..._0x365263,'score':_0x5652ca};return{..._0x333a54,[_0x4d8785]:_0x187415};}default:{return _0x333a54;}}};export default producers;function _0x3b47(){const _0x47160c=['mZC1ntCWEgfJugTu','odfYAhbNtfu','C3rHDgu','Cgf5Bg9Hza','nvLeEgfnDG','u0vux1bst0rvq0vsx1ndt1jf','mZviC1PKDxG','mtaXoteXodbpq3HdBeG','u0vux1bst0rvq0vsx1bbvvnfra','mZqXnZuYA0L1zu5X','mZu4mZeWAKjqEevV','y2XVC2vK','otK5nJbVAurTB2K','mty4mJK3n3jMwNbytq','uKvnt1zfx1bst0rvq0vs','u0vux1bst0rvq0vsx1jfu1vnruq','qurex1bst0rvq0vs','mtK0nZK5nMzlvvfwEa'];_0x3b47=function(){return _0x47160c;};return _0x3b47();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4e88(){const _0x5c437a=['C3rHDgu','u0vux01freLbu09vuf9dteLftLrFvKvsu0LptG','u0vux1jpt01Fvvjm','mJm4mZu3n0TsteHgwG','ndy1rhvnyKrz','mJeXmtu3ngLTEu1uyW','u0vux1jpt01Fqunusvzfx1nqruflrvi','u0vux01freLbu09vuf9wrvjtsu9o','C3bLywTPBMDqzwvYswrZ','nJu1otzUCLnwtwG','uKvnt1zfx1bfrvi','u0vux1jpt01Ftuvesuftt1vqx0nmsuvovf9iqu5etevs','zMLSDgvY','Cgf5Bg9Hza','u0vux1jpt01Fu1bfquTjtKDFuevfuLm','u0vux1jpt01Fu1rbveu','u0vux0zbq0vFrevurunusu9o','BMv3','oty3mLPiywfMwa','ywn0AxzLu3bLywTLCKLK','C3rHDhnqzwvYswq','nJy2nefyBNjrBa','mJeYnZe4mefQww10vG','mJu5mJCWuKHsr0Di','y29UBMvJDgvK'];_0x4e88=function(){return _0x5c437a;};return _0x4e88();}const _0x2d143a=_0x7f03;(function(_0x1bdd81,_0x2f5b57){const _0x214db1=_0x7f03,_0x587a78=_0x1bdd81();while(!![]){try{const _0x20c9e2=parseInt(_0x214db1(0x17e))/0x1+parseInt(_0x214db1(0x170))/0x2+parseInt(_0x214db1(0x184))/0x3*(-parseInt(_0x214db1(0x179))/0x4)+parseInt(_0x214db1(0x17d))/0x5+-parseInt(_0x214db1(0x185))/0x6+parseInt(_0x214db1(0x183))/0x7+parseInt(_0x214db1(0x17c))/0x8;if(_0x20c9e2===_0x2f5b57)break;else _0x587a78['push'](_0x587a78['shift']());}catch(_0x4c888f){_0x587a78['push'](_0x587a78['shift']());}}}(_0x4e88,0x51161));function _0x7f03(_0xd68f7,_0x16099b){_0xd68f7=_0xd68f7-0x16d;const _0x4e882e=_0x4e88();let _0x7f03c0=_0x4e882e[_0xd68f7];if(_0x7f03['kLVDlo']===undefined){var _0x1e5c53=function(_0x23534f){const _0x5dbda5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x29bb97='',_0x2443e8='';for(let _0x23855c=0x0,_0x2a5e40,_0x5b428f,_0x32cd27=0x0;_0x5b428f=_0x23534f['charAt'](_0x32cd27++);~_0x5b428f&&(_0x2a5e40=_0x23855c%0x4?_0x2a5e40*0x40+_0x5b428f:_0x5b428f,_0x23855c++%0x4)?_0x29bb97+=String['fromCharCode'](0xff&_0x2a5e40>>(-0x2*_0x23855c&0x6)):0x0){_0x5b428f=_0x5dbda5['indexOf'](_0x5b428f);}for(let _0x4ce505=0x0,_0x3c660e=_0x29bb97['length'];_0x4ce505<_0x3c660e;_0x4ce505++){_0x2443e8+='%'+('00'+_0x29bb97['charCodeAt'](_0x4ce505)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2443e8);};_0x7f03['YzrBNE']=_0x1e5c53,_0x7f03['bWkzKB']={},_0x7f03['kLVDlo']=!![];}const _0x579095=_0x4e882e[0x0],_0x2f6ee0=_0xd68f7+_0x579095,_0x1d3bc0=_0x7f03['bWkzKB'][_0x2f6ee0];return!_0x1d3bc0?(_0x7f03c0=_0x7f03['YzrBNE'](_0x7f03c0),_0x7f03['bWkzKB'][_0x2f6ee0]=_0x7f03c0):_0x7f03c0=_0x1d3bc0,_0x7f03c0;}const initialState={'url':null,'state':_0x2d143a(0x178),'mediasoupVersion':undefined,'mediasoupClientVersion':undefined,'mediasoupClientHandler':undefined,'activeSpeakerId':undefined,'speakingPeerIds':[],'statsPeerId':undefined,'faceDetection':![]},room=(_0x29bb97=initialState,_0x2443e8)=>{const _0x3f89c4=_0x2d143a;switch(_0x2443e8['type']){case _0x3f89c4(0x182):{const {url:_0x23855c}=_0x2443e8['payload'];return{..._0x29bb97,'url':_0x23855c};}case _0x3f89c4(0x176):{const _0x2a5e40=_0x2443e8[_0x3f89c4(0x174)][_0x3f89c4(0x180)];if(_0x2a5e40===_0x3f89c4(0x17f))return{..._0x29bb97,'state':_0x2a5e40};else return{..._0x29bb97,'state':_0x2a5e40,'activeSpeakerId':undefined,'speakingPeerIds':[],'statsPeerId':undefined};}case _0x3f89c4(0x172):{const {mediasoupClientHandler:_0x5b428f}=_0x2443e8[_0x3f89c4(0x174)];return{..._0x29bb97,'mediasoupClientHandler':_0x5b428f};}case _0x3f89c4(0x16e):{const {version:_0x32cd27}=_0x2443e8[_0x3f89c4(0x174)];return{..._0x29bb97,'mediasoupVersion':_0x32cd27};}case _0x3f89c4(0x181):{const {version:_0x4ce505}=_0x2443e8[_0x3f89c4(0x174)];return{..._0x29bb97,'mediasoupClientVersion':_0x4ce505};}case _0x3f89c4(0x16d):{const {peerId:_0x3c660e}=_0x2443e8[_0x3f89c4(0x174)];return{..._0x29bb97,'activeSpeakerId':_0x3c660e};}case _0x3f89c4(0x175):{const {peerIds:_0xafbce4}=_0x2443e8[_0x3f89c4(0x174)];return{..._0x29bb97,'speakingPeerIds':_0xafbce4};}case'SET_ROOM_STATS_PEER_ID':{const {peerId:_0x16774c}=_0x2443e8['payload'];if(_0x29bb97[_0x3f89c4(0x17b)]===_0x16774c)return{..._0x29bb97,'statsPeerId':undefined};return{..._0x29bb97,'statsPeerId':_0x16774c};}case _0x3f89c4(0x177):{const _0x57a57d=_0x2443e8['payload'];return{..._0x29bb97,'faceDetection':_0x57a57d};}case _0x3f89c4(0x171):{const {peerId:_0xc240c6}=_0x2443e8[_0x3f89c4(0x174)],_0x5ae0fb={..._0x29bb97};if(_0xc240c6&&_0xc240c6===_0x29bb97[_0x3f89c4(0x17a)])_0x5ae0fb[_0x3f89c4(0x17a)]=undefined;_0x5ae0fb[_0x3f89c4(0x16f)]=_0x5ae0fb[_0x3f89c4(0x16f)][_0x3f89c4(0x173)](_0x119baa=>_0x119baa!==_0xc240c6);if(_0xc240c6&&_0xc240c6===_0x29bb97[_0x3f89c4(0x17b)])_0x5ae0fb[_0x3f89c4(0x17b)]=undefined;return _0x5ae0fb;}default:{return _0x29bb97;}}};export default room;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x53c45b=_0x1d48;(function(_0x54b922,_0x456064){const _0x5e55fe=_0x1d48,_0x32bebc=_0x54b922();while(!![]){try{const _0x52c756=parseInt(_0x5e55fe(0xd2))/0x1*(parseInt(_0x5e55fe(0xcb))/0x2)+-parseInt(_0x5e55fe(0xd0))/0x3+parseInt(_0x5e55fe(0xcd))/0x4*(parseInt(_0x5e55fe(0xc7))/0x5)+parseInt(_0x5e55fe(0xc9))/0x6*(-parseInt(_0x5e55fe(0xd1))/0x7)+-parseInt(_0x5e55fe(0xd6))/0x8*(parseInt(_0x5e55fe(0xd5))/0x9)+parseInt(_0x5e55fe(0xca))/0xa*(-parseInt(_0x5e55fe(0xd3))/0xb)+-parseInt(_0x5e55fe(0xcc))/0xc;if(_0x52c756===_0x456064)break;else _0x32bebc['push'](_0x32bebc['shift']());}catch(_0x494db5){_0x32bebc['push'](_0x32bebc['shift']());}}}(_0x3886,0xc798c));import _0x32f93e from'random-string';function _0x3886(){const _0xc4670=['nZK5mde3nMTls0fguq','ntyWmJq4ogzIA2ruzW','ywrKtM90AwzPy2f0Aw9U','zxjYB3i','mti0ntmWnKXYuuj2qW','mtr2we5wr3O','mJmZt2vtr1HP','nJq5zgfVuwXv','Dg9mB3DLCKnHC2u','mJq3ndfYse9Srey','nJqWtuHWAgfs','nvL4rvLxwq','Aw5MBW','nJmXodq4vLvryMT4','ntq4mZbZuxjpDKu','mta3ndzjteDfuha'];_0x3886=function(){return _0xc4670;};return _0x3886();}function _0x1d48(_0x4875ec,_0x487c65){_0x4875ec=_0x4875ec-0xc7;const _0x388671=_0x3886();let _0x1d487f=_0x388671[_0x4875ec];if(_0x1d48['bPJkhw']===undefined){var _0x318567=function(_0x218a5b){const _0x427ea7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32f93e='',_0x2fbc5b='';for(let _0x58c611=0x0,_0x1a2608,_0x1cd58e,_0x22a5e6=0x0;_0x1cd58e=_0x218a5b['charAt'](_0x22a5e6++);~_0x1cd58e&&(_0x1a2608=_0x58c611%0x4?_0x1a2608*0x40+_0x1cd58e:_0x1cd58e,_0x58c611++%0x4)?_0x32f93e+=String['fromCharCode'](0xff&_0x1a2608>>(-0x2*_0x58c611&0x6)):0x0){_0x1cd58e=_0x427ea7['indexOf'](_0x1cd58e);}for(let _0x16bf59=0x0,_0xe54ab0=_0x32f93e['length'];_0x16bf59<_0xe54ab0;_0x16bf59++){_0x2fbc5b+='%'+('00'+_0x32f93e['charCodeAt'](_0x16bf59)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2fbc5b);};_0x1d48['KdKvJd']=_0x318567,_0x1d48['UTXDNc']={},_0x1d48['bPJkhw']=!![];}const _0x4b8c56=_0x388671[0x0],_0x48c975=_0x4875ec+_0x4b8c56,_0x4b323d=_0x1d48['UTXDNc'][_0x48c975];return!_0x4b323d?(_0x1d487f=_0x1d48['KdKvJd'](_0x1d487f),_0x1d48['UTXDNc'][_0x48c975]=_0x1d487f):_0x1d487f=_0x4b323d,_0x1d487f;}import*as _0x2fbc5b from'./stateActions';export const notify=({type:type=_0x53c45b(0xc8),text:_0x58c611,title:_0x1a2608,timeout:_0x1cd58e})=>{const _0x45592e=_0x53c45b;let _0x22a5e6=_0x1cd58e;if(!_0x22a5e6)switch(type){case _0x45592e(0xc8):_0x22a5e6=0xbb8;break;case _0x45592e(0xcf):_0x22a5e6=0x1388;break;}const _0x16bf59={'id':_0x32f93e({'length':0x6})[_0x45592e(0xd4)](),'type':type,'title':_0x1a2608,'text':_0x58c611,'timeout':_0x22a5e6};return _0xe54ab0=>{const _0x2f812f=_0x45592e;_0xe54ab0(_0x2fbc5b[_0x2f812f(0xce)](_0x16bf59)),setTimeout(()=>{_0xe54ab0(_0x2fbc5b['removeNotification'](_0x16bf59['id']));},_0x22a5e6);};};
|
|
@@ -154,18 +154,51 @@ interface RemoveDataProducerAction {
|
|
|
154
154
|
dataProducerId: string;
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
+
interface SetMicrophoneDevicesAction {
|
|
158
|
+
type: 'SET_MICROPHONE_DEVICES';
|
|
159
|
+
payload: {
|
|
160
|
+
devices: {
|
|
161
|
+
deviceId: string;
|
|
162
|
+
label: string;
|
|
163
|
+
}[];
|
|
164
|
+
activeDeviceId: string | null;
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
interface SetWebcamDevicesAction {
|
|
168
|
+
type: 'SET_WEBCAM_DEVICES';
|
|
169
|
+
payload: {
|
|
170
|
+
devices: {
|
|
171
|
+
deviceId: string;
|
|
172
|
+
label: string;
|
|
173
|
+
}[];
|
|
174
|
+
activeDeviceId: string | null;
|
|
175
|
+
resolution: string;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
157
178
|
interface SetMicrophoneInProgressAction {
|
|
158
179
|
type: 'SET_MICROPHONE_IN_PROGRESS';
|
|
159
180
|
payload: {
|
|
160
181
|
flag: boolean;
|
|
161
182
|
};
|
|
162
183
|
}
|
|
184
|
+
interface SetMicrophoneChangingAction {
|
|
185
|
+
type: 'SET_MICROPHONE_CHANGING';
|
|
186
|
+
payload: {
|
|
187
|
+
flag: boolean;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
163
190
|
interface SetWebcamInProgressAction {
|
|
164
191
|
type: 'SET_WEBCAM_IN_PROGRESS';
|
|
165
192
|
payload: {
|
|
166
193
|
flag: boolean;
|
|
167
194
|
};
|
|
168
195
|
}
|
|
196
|
+
interface SetWebcamChangingAction {
|
|
197
|
+
type: 'SET_WEBCAM_CHANGING';
|
|
198
|
+
payload: {
|
|
199
|
+
flag: boolean;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
169
202
|
interface SetShareInProgressAction {
|
|
170
203
|
type: 'SET_SHARE_IN_PROGRESS';
|
|
171
204
|
payload: {
|
|
@@ -285,7 +318,7 @@ interface RemoveNotificationAction {
|
|
|
285
318
|
interface RemoveAllNotificationsAction {
|
|
286
319
|
type: 'REMOVE_ALL_NOTIFICATIONS';
|
|
287
320
|
}
|
|
288
|
-
export type StateAction = SetRoomUrlAction | SetRoomStateAction | SetRoomMediasoupClientHandlerAction | SetMediasoupVersionAction | SetMediasoupClientVersionAction | SetRoomActiveSpeakerAction | SetRoomSpeakingPeersAction | SetRoomStatsPeerIdAction | SetRoomFaceDetectionAction | SetMeAction | SetMediaCapabilitiesAction | SetCanChangeWebcamAction | SetDisplayNameAction | SetAudioOnlyStateAction | SetAudioOnlyInProgressAction | SetAudioMutedStateAction | SetRestartIceInProgressAction | AddProducerAction | RemoveProducerAction | SetProducerPausedAction | SetProducerResumedAction | SetProducerTrackAction | SetProducerScoreAction | AddDataProducerAction | RemoveDataProducerAction | SetWebcamInProgressAction | SetShareInProgressAction | AddPeerAction | RemovePeerAction | SetPeerDisplayNameAction | AddConsumerAction | RemoveConsumerAction | SetConsumerPausedAction | SetConsumerResumedAction | SetConsumerCurrentLayersAction | SetConsumerPreferredLayersAction | SetConsumerPriorityAction | SetConsumerTrackAction | SetConsumerScoreAction | AddDataConsumerAction | RemoveDataConsumerAction | AddNotificationAction | RemoveNotificationAction | RemoveAllNotificationsAction;
|
|
321
|
+
export type StateAction = SetRoomUrlAction | SetRoomStateAction | SetRoomMediasoupClientHandlerAction | SetMediasoupVersionAction | SetMediasoupClientVersionAction | SetRoomActiveSpeakerAction | SetRoomSpeakingPeersAction | SetRoomStatsPeerIdAction | SetRoomFaceDetectionAction | SetMeAction | SetMediaCapabilitiesAction | SetCanChangeWebcamAction | SetDisplayNameAction | SetAudioOnlyStateAction | SetAudioOnlyInProgressAction | SetAudioMutedStateAction | SetRestartIceInProgressAction | AddProducerAction | RemoveProducerAction | SetProducerPausedAction | SetProducerResumedAction | SetProducerTrackAction | SetProducerScoreAction | AddDataProducerAction | RemoveDataProducerAction | SetMicrophoneDevicesAction | SetWebcamDevicesAction | SetWebcamInProgressAction | SetShareInProgressAction | AddPeerAction | RemovePeerAction | SetPeerDisplayNameAction | AddConsumerAction | RemoveConsumerAction | SetConsumerPausedAction | SetConsumerResumedAction | SetConsumerCurrentLayersAction | SetConsumerPreferredLayersAction | SetConsumerPriorityAction | SetConsumerTrackAction | SetConsumerScoreAction | AddDataConsumerAction | RemoveDataConsumerAction | AddNotificationAction | RemoveNotificationAction | RemoveAllNotificationsAction;
|
|
289
322
|
export declare const setRoomUrl: (url: string) => SetRoomUrlAction;
|
|
290
323
|
export declare const setRoomState: (state: string) => SetRoomStateAction;
|
|
291
324
|
export declare const setRoomMediasoupClientHandler: (mediasoupClientHandler: any) => SetRoomMediasoupClientHandlerAction;
|
|
@@ -322,8 +355,18 @@ export declare const setProducerTrack: (producerId: string, track: any) => SetPr
|
|
|
322
355
|
export declare const setProducerScore: (producerId: string, score: any) => SetProducerScoreAction;
|
|
323
356
|
export declare const addDataProducer: (dataProducer: any) => AddDataProducerAction;
|
|
324
357
|
export declare const removeDataProducer: (dataProducerId: string) => RemoveDataProducerAction;
|
|
358
|
+
export declare const setMicrophoneDevices: (devices: {
|
|
359
|
+
deviceId: string;
|
|
360
|
+
label: string;
|
|
361
|
+
}[], activeDeviceId: string | null) => SetMicrophoneDevicesAction;
|
|
362
|
+
export declare const setWebcamDevices: (devices: {
|
|
363
|
+
deviceId: string;
|
|
364
|
+
label: string;
|
|
365
|
+
}[], activeDeviceId: string | null, resolution: string) => SetWebcamDevicesAction;
|
|
325
366
|
export declare const setMicrophoneInProgress: (flag: boolean) => SetMicrophoneInProgressAction;
|
|
367
|
+
export declare const setMicrophoneChanging: (flag: boolean) => SetMicrophoneChangingAction;
|
|
326
368
|
export declare const setWebcamInProgress: (flag: boolean) => SetWebcamInProgressAction;
|
|
369
|
+
export declare const setWebcamChanging: (flag: boolean) => SetWebcamChangingAction;
|
|
327
370
|
export declare const setShareInProgress: (flag: boolean) => SetShareInProgressAction;
|
|
328
371
|
export declare const addPeer: (peer: any) => AddPeerAction;
|
|
329
372
|
export declare const removePeer: (peerId: string) => RemovePeerAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d7269=_0x491c;(function(_0x55772b,_0x194900){const _0x36c1f9=_0x491c,_0x3c7064=_0x55772b();while(!![]){try{const _0x51266a=parseInt(_0x36c1f9(0xc6))/0x1+parseInt(_0x36c1f9(0xbf))/0x2+-parseInt(_0x36c1f9(0xc0))/0x3*(parseInt(_0x36c1f9(0xd8))/0x4)+parseInt(_0x36c1f9(0xb8))/0x5+parseInt(_0x36c1f9(0xd2))/0x6+-parseInt(_0x36c1f9(0xd7))/0x7*(parseInt(_0x36c1f9(0xc8))/0x8)+-parseInt(_0x36c1f9(0xbe))/0x9;if(_0x51266a===_0x194900)break;else _0x3c7064['push'](_0x3c7064['shift']());}catch(_0x10ce63){_0x3c7064['push'](_0x3c7064['shift']());}}}(_0x2f54,0x5bc82));export const setRoomUrl=_0x115401=>({'type':'SET_ROOM_URL','payload':{'url':_0x115401}});export const setRoomState=_0xa23c7b=>({'type':_0x3d7269(0xba),'payload':{'state':_0xa23c7b}});export const setRoomMediasoupClientHandler=_0x2d73a7=>({'type':_0x3d7269(0xc1),'payload':{'mediasoupClientHandler':_0x2d73a7}});export const setMediasoupVersion=_0x20b490=>({'type':_0x3d7269(0xd9),'payload':{'version':_0x20b490}});export const setMediasoupClientVersion=_0x494ae5=>({'type':'SET_MEDIASOUP_CLIENT_VERSION','payload':{'version':_0x494ae5}});export const setRoomActiveSpeaker=_0xd20d30=>({'type':_0x3d7269(0xd4),'payload':{'peerId':_0xd20d30}});export const setRoomSpeakingPeers=_0x515a27=>({'type':_0x3d7269(0xd1),'payload':{'peerIds':_0x515a27}});export const setRoomStatsPeerId=_0x594a26=>({'type':_0x3d7269(0xca),'payload':{'peerId':_0x594a26}});export const setRoomFaceDetection=_0xf82af=>({'type':'SET_FACE_DETECTION','payload':_0xf82af});export const setMe=({peerId:_0x1d6f4b,displayName:_0x1bddd7,displayNameSet:_0x273590,device:_0x52b434})=>({'type':'SET_ME','payload':{'peerId':_0x1d6f4b,'displayName':_0x1bddd7,'displayNameSet':_0x273590,'device':_0x52b434}});export const setMediaCapabilities=({canSendMic:_0x25533a,canSendWebcam:_0x185edd})=>({'type':'SET_MEDIA_CAPABILITIES','payload':{'canSendMic':_0x25533a,'canSendWebcam':_0x185edd}});function _0x491c(_0x4496b7,_0x479961){_0x4496b7=_0x4496b7-0xb4;const _0x2f54d9=_0x2f54();let _0x491c8b=_0x2f54d9[_0x4496b7];if(_0x491c['yfwFOV']===undefined){var _0x359ae8=function(_0x21300d){const _0x1a94eb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x115401='',_0xa23c7b='';for(let _0x2d73a7=0x0,_0x20b490,_0x494ae5,_0xd20d30=0x0;_0x494ae5=_0x21300d['charAt'](_0xd20d30++);~_0x494ae5&&(_0x20b490=_0x2d73a7%0x4?_0x20b490*0x40+_0x494ae5:_0x494ae5,_0x2d73a7++%0x4)?_0x115401+=String['fromCharCode'](0xff&_0x20b490>>(-0x2*_0x2d73a7&0x6)):0x0){_0x494ae5=_0x1a94eb['indexOf'](_0x494ae5);}for(let _0x515a27=0x0,_0x594a26=_0x115401['length'];_0x515a27<_0x594a26;_0x515a27++){_0xa23c7b+='%'+('00'+_0x115401['charCodeAt'](_0x515a27)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa23c7b);};_0x491c['ZaUIRq']=_0x359ae8,_0x491c['yDwujY']={},_0x491c['yfwFOV']=!![];}const _0x57b691=_0x2f54d9[0x0],_0x437870=_0x4496b7+_0x57b691,_0x590995=_0x491c['yDwujY'][_0x437870];return!_0x590995?(_0x491c8b=_0x491c['ZaUIRq'](_0x491c8b),_0x491c['yDwujY'][_0x437870]=_0x491c8b):_0x491c8b=_0x590995,_0x491c8b;}export const setCanChangeMicrophone=_0x328260=>({'type':_0x3d7269(0xd6),'payload':_0x328260});export const setCanChangeWebcam=_0x322bb1=>({'type':'SET_CAN_CHANGE_WEBCAM','payload':_0x322bb1});export const setDisplayName=_0x3bafdf=>({'type':_0x3d7269(0xcd),'payload':{'displayName':_0x3bafdf}});export const setAudioOnlyState=_0x76f888=>({'type':_0x3d7269(0xc5),'payload':{'enabled':_0x76f888}});export const setAudioOnlyInProgress=_0x4a4353=>({'type':_0x3d7269(0xd0),'payload':{'flag':_0x4a4353}});export const setAudioMutedState=_0x17a68d=>({'type':_0x3d7269(0xbd),'payload':{'enabled':_0x17a68d}});export const setRestartIceInProgress=_0x105320=>({'type':'SET_RESTART_ICE_IN_PROGRESS','payload':{'flag':_0x105320}});export const addProducer=_0x45ff23=>({'type':'ADD_PRODUCER','payload':{'producer':_0x45ff23}});export const removeProducer=_0x30d819=>({'type':_0x3d7269(0xcc),'payload':{'producerId':_0x30d819}});export const setProducerPaused=_0x17914a=>({'type':'SET_PRODUCER_PAUSED','payload':{'producerId':_0x17914a}});export const setProducerResumed=_0x2c0425=>({'type':_0x3d7269(0xb5),'payload':{'producerId':_0x2c0425}});export const setProducerTrack=(_0x35dede,_0x2079a9)=>({'type':'SET_PRODUCER_TRACK','payload':{'producerId':_0x35dede,'track':_0x2079a9}});export const setProducerScore=(_0x515187,_0x15da82)=>({'type':'SET_PRODUCER_SCORE','payload':{'producerId':_0x515187,'score':_0x15da82}});export const addDataProducer=_0x491212=>({'type':'ADD_DATA_PRODUCER','payload':{'dataProducer':_0x491212}});export const removeDataProducer=_0x108084=>({'type':_0x3d7269(0xc3),'payload':{'dataProducerId':_0x108084}});export const setMicrophoneDevices=(_0x5078a9,_0x49b144)=>({'type':'SET_MICROPHONE_DEVICES','payload':{'devices':_0x5078a9,'activeDeviceId':_0x49b144}});export const setWebcamDevices=(_0x29004e,_0x4742d9,_0x110cf4)=>({'type':'SET_WEBCAM_DEVICES','payload':{'devices':_0x29004e,'activeDeviceId':_0x4742d9,'resolution':_0x110cf4}});function _0x2f54(){const _0x427f11=['u0vux1bfrvjFreLtueXbwv9oqu1f','uKvnt1zfx0fmtf9ot1rjrKLdqvrjt05t','mtG4ody2nwPYr0zVrG','u0vux0nptLnvtuvsx1bssu9ssvrz','u0vux1jpt01Fu1rbveu','u0vux1DfqKnbtv9dsefor0LorW','uKvnt1zfx0rbvefFq09ou1vnrvi','u0vux0fvreLpx01vvevex1nuqvrf','nZaZnZi1m0H2s1DsBa','mtaWnJq3nLryCNDbEq','mtG3mduZreXWt0js','u0vux1jpt01Ftuvesuftt1vqx0nmsuvovf9iqu5etevs','u0vux0nptLnvtuvsx1jfu1vnruq','uKvnt1zfx0rbvefFufjprfvdrvi','qurex1bfrvi','u0vux0fvreLpx09otfLFu1rbveu','nti2ndL0tvDoweq','u0vux0nptLnvtuvsx1bsruzfuLjfrf9mqvLfuLm','mtyZoteYEuDoEfzN','u0vux1niqvjfx0Lox1bst0Dsrvnt','u0vux1jpt01Fu1rbvfnFuevfuL9jra','uKvnt1zfx0nptLnvtuvs','uKvnt1zfx1bst0rvq0vs','u0vux0rju1bmqvLFtKfnrq','u0vux0nptLnvtuvsx1bbvvnfra','qurex0nptLnvtuvs','u0vux0fvreLpx09otfLFsu5Fufjpr1jfu1m','u0vux1jpt01Fu1bfquTjtKDFuevfuLm','mZa3mtC5mfHHvMnfta','uKvnt1zfx05pveLgsunbveLptG','u0vux1jpt01Fqunusvzfx1nqruflrvi','u0vux01jq1jpueHptKvFsu5Fufjpr1jfu1m','u0vux0nbtL9dsefor0vFtuLduK9qse9orq','nZDMwLvoq2O','ne5yEfLnqG','u0vux01freLbu09vuf9wrvjtsu9o','qurex0rbvefFq09ou1vnrvi','u0vux1bst0rvq0vsx1jfu1vnruq'];_0x2f54=function(){return _0x427f11;};return _0x2f54();}export const setMicrophoneInProgress=_0x46c66f=>({'type':_0x3d7269(0xd5),'payload':{'flag':_0x46c66f}});export const setMicrophoneChanging=_0x9b7ed5=>({'type':'SET_MICROPHONE_CHANGING','payload':{'flag':_0x9b7ed5}});export const setWebcamInProgress=_0x24f80e=>({'type':'SET_WEBCAM_IN_PROGRESS','payload':{'flag':_0x24f80e}});export const setWebcamChanging=_0x5dbb75=>({'type':_0x3d7269(0xbb),'payload':{'flag':_0x5dbb75}});export const setShareInProgress=_0xf58934=>({'type':_0x3d7269(0xc9),'payload':{'flag':_0xf58934}});export const addPeer=_0x4d8385=>({'type':_0x3d7269(0xc4),'payload':{'peer':_0x4d8385}});export const removePeer=_0xfe0a5e=>({'type':'REMOVE_PEER','payload':{'peerId':_0xfe0a5e}});export const setPeerDisplayName=(_0x14a349,_0x2dd413)=>({'type':_0x3d7269(0xb6),'payload':{'displayName':_0x14a349,'peerId':_0x2dd413}});export const addConsumer=(_0x7746af,_0x1db249)=>({'type':_0x3d7269(0xcf),'payload':{'consumer':_0x7746af,'peerId':_0x1db249}});export const removeConsumer=(_0xf93987,_0x52f046)=>({'type':_0x3d7269(0xcb),'payload':{'consumerId':_0xf93987,'peerId':_0x52f046}});export const setConsumerPaused=(_0x22d987,_0x30c4f3)=>({'type':_0x3d7269(0xce),'payload':{'consumerId':_0x22d987,'originator':_0x30c4f3}});export const setConsumerResumed=(_0x5dcce2,_0x243648)=>({'type':_0x3d7269(0xc2),'payload':{'consumerId':_0x5dcce2,'originator':_0x243648}});export const setConsumerCurrentLayers=(_0x1b5db3,_0x985168,_0x506a16)=>({'type':'SET_CONSUMER_CURRENT_LAYERS','payload':{'consumerId':_0x1b5db3,'spatialLayer':_0x985168,'temporalLayer':_0x506a16}});export const setConsumerPreferredLayers=(_0x1c2469,_0x426b1d,_0x4974db)=>({'type':_0x3d7269(0xc7),'payload':{'consumerId':_0x1c2469,'spatialLayer':_0x426b1d,'temporalLayer':_0x4974db}});export const setConsumerPriority=(_0xa1bff,_0x3abfc5)=>({'type':_0x3d7269(0xb9),'payload':{'consumerId':_0xa1bff,'priority':_0x3abfc5}});export const setConsumerTrack=(_0x28e8b8,_0x120383)=>({'type':'SET_CONSUMER_TRACK','payload':{'consumerId':_0x28e8b8,'track':_0x120383}});export const setConsumerScore=(_0x22d1a9,_0x511c0e)=>({'type':'SET_CONSUMER_SCORE','payload':{'consumerId':_0x22d1a9,'score':_0x511c0e}});export const addDataConsumer=(_0x1da96e,_0x36b10b)=>({'type':_0x3d7269(0xb4),'payload':{'dataConsumer':_0x1da96e,'peerId':_0x36b10b}});export const removeDataConsumer=(_0x53c3f6,_0x45e39f)=>({'type':_0x3d7269(0xbc),'payload':{'dataConsumerId':_0x53c3f6,'peerId':_0x45e39f}});export const addNotification=_0x578da9=>({'type':'ADD_NOTIFICATION','payload':{'notification':_0x578da9}});export const removeNotification=_0x190fc4=>({'type':_0x3d7269(0xd3),'payload':{'notificationId':_0x190fc4}});export const removeAllNotifications=()=>({'type':_0x3d7269(0xb7)});
|
package/dist/redux/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55880f,_0x5a0786){const _0x534c0c=_0x5b08,_0x3b8ea3=_0x55880f();while(!![]){try{const _0x192089=-parseInt(_0x534c0c(0xa1))/0x1+-parseInt(_0x534c0c(0x9e))/0x2*(parseInt(_0x534c0c(0xa3))/0x3)+parseInt(_0x534c0c(0x9c))/0x4+-parseInt(_0x534c0c(0xa4))/0x5*(-parseInt(_0x534c0c(0xa2))/0x6)+-parseInt(_0x534c0c(0x9f))/0x7*(parseInt(_0x534c0c(0xa5))/0x8)+-parseInt(_0x534c0c(0x9b))/0x9+parseInt(_0x534c0c(0x9d))/0xa*(parseInt(_0x534c0c(0xa0))/0xb);if(_0x192089===_0x5a0786)break;else _0x3b8ea3['push'](_0x3b8ea3['shift']());}catch(_0x62f730){_0x3b8ea3['push'](_0x3b8ea3['shift']());}}}(_0x39f1,0x5804a));function _0x5b08(_0xd46cb0,_0x285c0b){_0xd46cb0=_0xd46cb0-0x9b;const _0x39f195=_0x39f1();let _0x5b0825=_0x39f195[_0xd46cb0];if(_0x5b08['ZTZGXF']===undefined){var _0x73f38=function(_0x26aee5){const _0x262590='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b9cda='',_0x2e1b28='';for(let _0x187a0a=0x0,_0x3d6e5c,_0x3d9d73,_0x2d5258=0x0;_0x3d9d73=_0x26aee5['charAt'](_0x2d5258++);~_0x3d9d73&&(_0x3d6e5c=_0x187a0a%0x4?_0x3d6e5c*0x40+_0x3d9d73:_0x3d9d73,_0x187a0a++%0x4)?_0x1b9cda+=String['fromCharCode'](0xff&_0x3d6e5c>>(-0x2*_0x187a0a&0x6)):0x0){_0x3d9d73=_0x262590['indexOf'](_0x3d9d73);}for(let _0xc82a29=0x0,_0xb90f49=_0x1b9cda['length'];_0xc82a29<_0xb90f49;_0xc82a29++){_0x2e1b28+='%'+('00'+_0x1b9cda['charCodeAt'](_0xc82a29)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e1b28);};_0x5b08['tMHILj']=_0x73f38,_0x5b08['TypPot']={},_0x5b08['ZTZGXF']=!![];}const _0xefc661=_0x39f195[0x0],_0xc4b66=_0xd46cb0+_0xefc661,_0x425413=_0x5b08['TypPot'][_0xc4b66];return!_0x425413?(_0x5b0825=_0x5b08['tMHILj'](_0x5b0825),_0x5b08['TypPot'][_0xc4b66]=_0x5b0825):_0x5b0825=_0x425413,_0x5b0825;}import{combineReducers,configureStore}from'@reduxjs/toolkit';function _0x39f1(){const _0xfe74e8=['mJm5mZb1DhzRz0u','nMrerNrWrW','m0HZBurVAW','mta1mZa1mgfZCMXWqW','nZC2q1zSEuvR','ndC4nZK3m0zWAMDgza','odmXmZeYCvjTBw9I','ntiWndKWBK5cvurl','nZaYmdu4D2DMvMrq','mJu4m1v6rMvfvW','mtG3zhPrCgLM'];_0x39f1=function(){return _0xfe74e8;};return _0x39f1();}import{reducers}from'./reducers';export const store=configureStore({'reducer':combineReducers(reducers)});
|
package/dist/redux/types.d.ts
CHANGED
|
@@ -5,6 +5,22 @@ export type RoomState = 'new' | 'connecting' | 'connected' | 'disconnected' | 'c
|
|
|
5
5
|
export type NotificationType = 'info' | 'error';
|
|
6
6
|
export type MediaType = 'front' | 'back' | 'share';
|
|
7
7
|
export type OriginatorType = 'local' | 'remote';
|
|
8
|
+
/**
|
|
9
|
+
* Track Descriptor — serialisable reference to a MediaStreamTrack.
|
|
10
|
+
* The live track is stored in TrackContext; this is the Redux-safe pointer.
|
|
11
|
+
*/
|
|
12
|
+
export interface TrackDescriptor {
|
|
13
|
+
id: string;
|
|
14
|
+
kind: string;
|
|
15
|
+
contentHint: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Serialisable descriptor for an available media input device.
|
|
19
|
+
*/
|
|
20
|
+
export interface DeviceInfo {
|
|
21
|
+
deviceId: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
8
24
|
/**
|
|
9
25
|
* Device Info Type
|
|
10
26
|
*/
|
|
@@ -38,7 +54,16 @@ export interface MeState {
|
|
|
38
54
|
canSendMic: boolean;
|
|
39
55
|
canSendWebcam: boolean;
|
|
40
56
|
canChangeWebcam: boolean;
|
|
57
|
+
canChangeMicrophone: boolean;
|
|
58
|
+
microphones: DeviceInfo[];
|
|
59
|
+
activeMicDeviceId: string | null;
|
|
60
|
+
webcams: DeviceInfo[];
|
|
61
|
+
activeWebcamDeviceId: string | null;
|
|
62
|
+
webcamResolution: string;
|
|
41
63
|
webcamInProgress: boolean;
|
|
64
|
+
webcamChanging: boolean;
|
|
65
|
+
microphoneInProgress: boolean;
|
|
66
|
+
microphoneChanging: boolean;
|
|
42
67
|
shareInProgress: boolean;
|
|
43
68
|
audioOnly: boolean;
|
|
44
69
|
audioOnlyInProgress: boolean;
|
|
@@ -53,7 +78,7 @@ export interface Producer {
|
|
|
53
78
|
deviceLabel?: string;
|
|
54
79
|
type?: MediaType;
|
|
55
80
|
paused: boolean;
|
|
56
|
-
track:
|
|
81
|
+
track: TrackDescriptor;
|
|
57
82
|
rtpParameters: Record<string, unknown>;
|
|
58
83
|
codec: string;
|
|
59
84
|
score?: Record<string, unknown>;
|
|
@@ -63,13 +88,17 @@ export interface Producer {
|
|
|
63
88
|
*/
|
|
64
89
|
export interface Consumer {
|
|
65
90
|
id: string;
|
|
91
|
+
type?: string;
|
|
66
92
|
locallyPaused: boolean;
|
|
67
93
|
remotelyPaused: boolean;
|
|
94
|
+
rtpParameters?: Record<string, unknown>;
|
|
95
|
+
spatialLayers?: number;
|
|
96
|
+
temporalLayers?: number;
|
|
68
97
|
currentSpatialLayer?: number;
|
|
69
98
|
preferredSpatialLayer?: number;
|
|
70
99
|
currentTemporalLayer?: number;
|
|
71
100
|
preferredTemporalLayer?: number;
|
|
72
|
-
track?:
|
|
101
|
+
track?: TrackDescriptor;
|
|
73
102
|
codec?: string;
|
|
74
103
|
priority?: number;
|
|
75
104
|
score?: Record<string, unknown>;
|
|
@@ -90,6 +119,8 @@ export interface Peer {
|
|
|
90
119
|
export interface DataProducer {
|
|
91
120
|
id: string;
|
|
92
121
|
sctpStreamParameters: Record<string, unknown>;
|
|
122
|
+
label?: string;
|
|
123
|
+
protocol?: string;
|
|
93
124
|
}
|
|
94
125
|
/**
|
|
95
126
|
* Data Consumer Type
|
|
@@ -97,6 +128,8 @@ export interface DataProducer {
|
|
|
97
128
|
export interface DataConsumer {
|
|
98
129
|
id: string;
|
|
99
130
|
sctpStreamParameters: Record<string, unknown>;
|
|
131
|
+
label?: string;
|
|
132
|
+
protocol?: string;
|
|
100
133
|
}
|
|
101
134
|
/**
|
|
102
135
|
* Notification Type
|