2019-05-24 00:47:56 +08:00
|
|
|
import React from 'react';
|
|
|
|
|
2019-06-12 02:23:27 +08:00
|
|
|
export function LockStruct() {
|
2019-05-24 00:47:56 +08:00
|
|
|
return ({
|
|
|
|
isLocked: false,
|
|
|
|
lockSettings: {
|
|
|
|
disableCam: false,
|
|
|
|
disableMic: false,
|
2021-10-16 03:07:13 +08:00
|
|
|
disableNotes: false,
|
2019-05-24 00:47:56 +08:00
|
|
|
disablePrivateChat: false,
|
|
|
|
disablePublicChat: false,
|
|
|
|
lockOnJoin: true,
|
|
|
|
lockOnJoinConfigurable: false,
|
2022-03-22 02:25:41 +08:00
|
|
|
hideViewersCursor: false,
|
2022-12-13 07:26:03 +08:00
|
|
|
hideViewersAnnotation: false,
|
2019-05-24 00:47:56 +08:00
|
|
|
},
|
|
|
|
userLocks: {
|
|
|
|
userWebcam: false,
|
|
|
|
userMic: false,
|
2021-10-16 03:07:13 +08:00
|
|
|
userNotes: false,
|
2019-05-24 00:47:56 +08:00
|
|
|
userPrivateChat: false,
|
|
|
|
userPublicChat: false,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-06-12 02:23:27 +08:00
|
|
|
const lockContext = React.createContext(new LockStruct());
|
2019-05-24 00:47:56 +08:00
|
|
|
|
|
|
|
export default lockContext;
|