Migrate to EventBus

This commit is contained in:
redphx
2024-12-08 21:06:42 +07:00
parent e1ba2344b7
commit b11d465804
10 changed files with 77 additions and 73 deletions

View File

@@ -20,7 +20,11 @@ type ScriptEvents = {
deviceVibrationUpdated: {};
// GH pages
listForcedNativeMkbUpdated: {};
listForcedNativeMkbUpdated: {
data: {
data: any;
};
};
};
type StreamEvents = {
@@ -29,6 +33,8 @@ type StreamEvents = {
statePlaying: { $video?: HTMLVideoElement };
stateStopped: {};
stateError: {};
dataChannelCreated: { dataChannel: RTCDataChannel };
};
export class BxEventBus<TEvents extends Record<string, any>> {