@cloudflare/realtimekit 2.0.2-staging.3 → 2.0.2-staging.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1946,9 +1946,11 @@ declare enum TransportState {
1946
1946
  type MediaConnectionState = {
1947
1947
  recv: {
1948
1948
  state: string;
1949
+ sfuSessionId?: string;
1949
1950
  };
1950
1951
  send: {
1951
1952
  state: string;
1953
+ sfuSessionId?: string;
1952
1954
  };
1953
1955
  };
1954
1956
  interface BasicParticipant {
@@ -2020,9 +2022,9 @@ declare enum TabChangeSource {
2020
2022
  Meeting = 1
2021
2023
  }
2022
2024
  interface MediaConnectionUpdate {
2023
- transport: 'consuming' | 'producing';
2025
+ transport: 'send' | 'recv';
2024
2026
  state: string;
2025
- reconnected: boolean;
2027
+ sfuSessionId?: string;
2026
2028
  }
2027
2029
  type MetaEvents = {
2028
2030
  ['mediaConnectionUpdate']: (payload: MediaConnectionUpdate) => void;
@@ -4093,6 +4095,7 @@ type AllEvents = {
4093
4095
  [key in SessionEvents]: (payload?: any) => void;
4094
4096
  };
4095
4097
  type TypedEvents = {
4098
+ [SessionEvents.TRANSPORT_STATE_UPDATE]: (payload: MediaConnectionUpdate) => void;
4096
4099
  [SessionEvents.UPDATE_PERMISSIONS]: (p: PresetUpdates) => void;
4097
4100
  [SessionEvents.MAX_SPATIAL_LAYER_CHANGE]: (p: {
4098
4101
  peerId: string;
@@ -1983,9 +1983,11 @@ declare enum TransportState {
1983
1983
  type MediaConnectionState = {
1984
1984
  recv: {
1985
1985
  state: string;
1986
+ sfuSessionId?: string;
1986
1987
  };
1987
1988
  send: {
1988
1989
  state: string;
1990
+ sfuSessionId?: string;
1989
1991
  };
1990
1992
  };
1991
1993
  interface BasicParticipant {
@@ -2057,9 +2059,9 @@ declare enum TabChangeSource {
2057
2059
  Meeting = 1
2058
2060
  }
2059
2061
  interface MediaConnectionUpdate {
2060
- transport: 'consuming' | 'producing';
2062
+ transport: 'send' | 'recv';
2061
2063
  state: string;
2062
- reconnected: boolean;
2064
+ sfuSessionId?: string;
2063
2065
  }
2064
2066
  type MetaEvents = {
2065
2067
  ['mediaConnectionUpdate']: (payload: MediaConnectionUpdate) => void;
@@ -4024,6 +4026,7 @@ type AllEvents = {
4024
4026
  [key in SessionEvents]: (payload?: any) => void;
4025
4027
  };
4026
4028
  type TypedEvents = {
4029
+ [SessionEvents.TRANSPORT_STATE_UPDATE]: (payload: MediaConnectionUpdate) => void;
4027
4030
  [SessionEvents.UPDATE_PERMISSIONS]: (p: PresetUpdates) => void;
4028
4031
  [SessionEvents.MAX_SPATIAL_LAYER_CHANGE]: (p: {
4029
4032
  peerId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit",
3
- "version": "2.0.2-staging.3",
3
+ "version": "2.0.2-staging.5",
4
4
  "description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",