PretestContext
enables developers to implement the pre-class test module in the flexible classroom, such as check whether the camera, microphone and speaker are working properly.
isBeauty: boolean;
- Since v1.1.5.
- Only applicable to Electron.
Whether the basic image enhancement is enabled.
setBeauty: (isBeauty: boolean) => void;
- Since v1.1.5.
- Only applicable to Electron.
Enables/Disables the basic image enhancement.
Parameter | Description |
---|---|
isBeauty |
Whether to enable the image enhancement: |
whitening: number;
- Since v1.1.5.
- Only applicable to Electron.
The brightness value.
buffing: number;
- Since v1.1.5.
- Only applicable to Electron.
The smoothness value.
ruddy: number;
- Since v1.1.5.
- Only applicable to Electron.
The red saturation value.
setWhitening: (whitening: number) => void;
- Since v1.1.5.
- Only applicable to Electron.
Sets the brightness value.
Parameter | Description |
---|---|
whitening |
The brightness value The value range is 0 to 100, and the default value is 70. |
setBuffing: (buffing: number) => void;
- Since v1.1.5.
- Only applicable to Electron.
Sets the smoothness value.
Parameter | Description |
---|---|
buffing |
The smoothness value. The value range is 0 to 100, and the default value is 50. |
setRuddy: (ruddy: number) => void;
- Since v1.1.5.
- Only applicable to Electron.
Sets the red saturation value.
Parameter | Description |
---|---|
ruddy |
The red saturation value. The value range is 0 to 100, and the default value is 10. |
changeTestSpeaker: (deviceId: string) => Promise<void>;
Since v1.1.5.
Switches the speaker.
Parameter | Description |
---|---|
deviceId |
The device ID. |
cameraList: array,
The camera list.
microphoneList: array,
The microphone list.
speakerList: array,
The speaker list.
cameraError: boolean,
Whether the camera is working properly.
microphoneError: boolean,
Whether the microphone is working properly.
cameraId: string,
The ID of the selected ID.
microphoneId: string,
The ID of the selected microphone.
speakerId: string,
The ID of the selected speaker.
isMirror: boolean,
Whether the current camera view is mirrored.
setMirror(mirror: boolean): void
Whether to mirror the camera view.
microphoneLevel: number,
The current volume of the microphone. The value range is 0 to 20.
async changeTestSpeakerVolume(value: any): void
Adjusts the volume of the speaker.
async changeTestMicrophoneVolume(value: any): void
Adjusts the volume of the microphone.
async changeTestCamera(deviceId: string): void
Switches the camera.
async changeTestMicrophone(deviceId: string): void
Switches the microphone.
async startPretestCamera(): void
Turn on the camera.
async startPretestMicrophone(): void
Turn on the microphone.
async stopPretestCamera(): void
Turn off the camera.
async stopPretestMicrophone():void
Turn off the microphone.