Skip to content

Commit 3e3f2f1

Browse files
Merge pull request #264 from SuperViz/beta
March Update #3
2 parents c41ae5f + 8fc227b commit 3e3f2f1

5 files changed

Lines changed: 21 additions & 4 deletions

File tree

apps/playground/src/pages/yjs-monaco-wio.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ const SUPERVIZ_KEY = getConfig<string>("keys.superviz");
2121
const SUPERVIZ_ROOM_PREFIX = getConfig<string>("roomPrefix");
2222

2323
const componentName = "yjs-monaco-wio";
24+
const participantNames = [
25+
"Olivia",
26+
"Mike",
27+
"Greg"
28+
]
2429

2530
function setStyles(
2631
states: Map<number, Record<string, any>>,
@@ -78,7 +83,7 @@ export function YjsMonacoWio() {
7883
room.current = await Room(SUPERVIZ_KEY, {
7984
roomId: `${SUPERVIZ_ROOM_PREFIX}-${componentName}`,
8085
participant: {
81-
name: "Participant",
86+
name: participantNames[Math.floor(Math.random() * participantNames.length)],
8287
id: uuid,
8388
},
8489
group: {

packages/react-room/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@superviz/react",
33
"private": false,
4-
"version": "1.0.6",
4+
"version": "1.0.7-beta.1",
55
"type": "module",
66
"scripts": {
77
"watch": "./node_modules/typescript/bin/tsc && vite build --watch",

packages/socket-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superviz/socket-client",
3-
"version": "1.16.6",
3+
"version": "1.16.7-beta.1",
44
"description": "SuperViz Socket Client",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/video/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superviz/video",
3-
"version": "1.0.3",
3+
"version": "1.0.4-beta.1",
44
"description": "SuperViz Video SDK",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/video/src/services/video-manager/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export default class VideoManager {
235235
this.updateFrameState(VideoFrameState.INITIALIZED);
236236
this.updateFrameLocale();
237237
this.updateMeetingAvatars();
238+
this.updateFrameStyle();
238239
this.onWindowResize();
239240
this.setCallbacks();
240241
};
@@ -418,6 +419,17 @@ export default class VideoManager {
418419
this.messageBridge.publish(FrameEvent.FRAME_LOCALE_UPDATE, this.frameLocale);
419420
};
420421

422+
/**
423+
* @function updateFrameStyle
424+
* @description update frame style
425+
* @returns {void}
426+
*/
427+
private updateFrameStyle = (): void => {
428+
if (!this.styles) return;
429+
430+
this.messageBridge.publish(FrameEvent.FRAME_STYLES_UPDATE, this.styles);
431+
};
432+
421433
/**
422434
* @function updateMeetingAvatars
423435
* @description update list of avatars

0 commit comments

Comments
 (0)