Add voice broadcast pre-recoding PiP (#9548)
This commit is contained in:
@@ -29,6 +29,7 @@ import TypingStore from "../stores/TypingStore";
|
||||
import { WidgetLayoutStore } from "../stores/widgets/WidgetLayoutStore";
|
||||
import { WidgetPermissionStore } from "../stores/widgets/WidgetPermissionStore";
|
||||
import WidgetStore from "../stores/WidgetStore";
|
||||
import { VoiceBroadcastPreRecordingStore, VoiceBroadcastRecordingsStore } from "../voice-broadcast";
|
||||
|
||||
export const SDKContext = createContext<SdkContextClass>(undefined);
|
||||
SDKContext.displayName = "SDKContext";
|
||||
@@ -63,6 +64,8 @@ export class SdkContextClass {
|
||||
protected _SpaceStore?: SpaceStoreClass;
|
||||
protected _LegacyCallHandler?: LegacyCallHandler;
|
||||
protected _TypingStore?: TypingStore;
|
||||
protected _VoiceBroadcastRecordingsStore?: VoiceBroadcastRecordingsStore;
|
||||
protected _VoiceBroadcastPreRecordingStore?: VoiceBroadcastPreRecordingStore;
|
||||
|
||||
/**
|
||||
* Automatically construct stores which need to be created eagerly so they can register with
|
||||
@@ -141,4 +144,18 @@ export class SdkContextClass {
|
||||
}
|
||||
return this._TypingStore;
|
||||
}
|
||||
|
||||
public get voiceBroadcastRecordingsStore(): VoiceBroadcastRecordingsStore {
|
||||
if (!this._VoiceBroadcastRecordingsStore) {
|
||||
this._VoiceBroadcastRecordingsStore = VoiceBroadcastRecordingsStore.instance();
|
||||
}
|
||||
return this._VoiceBroadcastRecordingsStore;
|
||||
}
|
||||
|
||||
public get voiceBroadcastPreRecordingStore(): VoiceBroadcastPreRecordingStore {
|
||||
if (!this._VoiceBroadcastPreRecordingStore) {
|
||||
this._VoiceBroadcastPreRecordingStore = new VoiceBroadcastPreRecordingStore();
|
||||
}
|
||||
return this._VoiceBroadcastPreRecordingStore;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user