fix block git
This commit is contained in:
@@ -83,13 +83,13 @@ export const ProctorStreamPanels: React.FC<ProctorStreamPanelsProps> = ({
|
|||||||
try {
|
try {
|
||||||
const msg = JSON.parse(event.data);
|
const msg = JSON.parse(event.data);
|
||||||
if (msg.event === 'client:pong') return;
|
if (msg.event === 'client:pong') return;
|
||||||
if (msg.event === 'teacher:screenshot-stream-frame' && msg.data.studentId === studentId) {
|
if (msg.event === 'teacher:screenshot-stream-frame' && msg.data.studentId == studentId) {
|
||||||
setScreenFrame(msg.data.imageBuffer);
|
setScreenFrame(msg.data.imageBuffer);
|
||||||
markStreaming();
|
markStreaming();
|
||||||
} else if (msg.event === 'teacher:webcam-stream-frame' && msg.data.studentId === studentId) {
|
} else if (msg.event === 'teacher:webcam-stream-frame' && msg.data.studentId == studentId) {
|
||||||
setWebcamFrame(msg.data.imageBuffer);
|
setWebcamFrame(msg.data.imageBuffer);
|
||||||
markStreaming();
|
markStreaming();
|
||||||
} else if (msg.event === 'teacher:stream-stopped' && msg.data.studentId === studentId) {
|
} else if (msg.event === 'teacher:stream-stopped' && msg.data.studentId == studentId) {
|
||||||
setScreenFrame(null);
|
setScreenFrame(null);
|
||||||
setWebcamFrame(null);
|
setWebcamFrame(null);
|
||||||
setStreaming(false);
|
setStreaming(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user