@stream-io/video-client 0.0.22 → 0.0.24
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.
- package/CHANGELOG.md +14 -0
- package/dist/index.browser.es.js +5 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/gen/coordinator/index.d.ts +33 -0
- package/package.json +1 -1
- package/src/Call.ts +5 -1
- package/src/events/callEventHandlers.ts +1 -0
- package/src/gen/coordinator/index.ts +32 -0
|
@@ -1564,6 +1564,37 @@ export interface CallUpdatedEvent {
|
|
|
1564
1564
|
*/
|
|
1565
1565
|
type: string;
|
|
1566
1566
|
}
|
|
1567
|
+
/**
|
|
1568
|
+
* This event is sent when a call member is muted
|
|
1569
|
+
* @export
|
|
1570
|
+
* @interface CallUserMuted
|
|
1571
|
+
*/
|
|
1572
|
+
export interface CallUserMuted {
|
|
1573
|
+
/**
|
|
1574
|
+
*
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof CallUserMuted
|
|
1577
|
+
*/
|
|
1578
|
+
call_cid: string;
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @type {string}
|
|
1582
|
+
* @memberof CallUserMuted
|
|
1583
|
+
*/
|
|
1584
|
+
created_at: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* The type of event: "call.user_muted" in this case
|
|
1587
|
+
* @type {string}
|
|
1588
|
+
* @memberof CallUserMuted
|
|
1589
|
+
*/
|
|
1590
|
+
type: string;
|
|
1591
|
+
/**
|
|
1592
|
+
*
|
|
1593
|
+
* @type {Array<string>}
|
|
1594
|
+
* @memberof CallUserMuted
|
|
1595
|
+
*/
|
|
1596
|
+
user_ids: Array<string>;
|
|
1597
|
+
}
|
|
1567
1598
|
/**
|
|
1568
1599
|
*
|
|
1569
1600
|
* @export
|
|
@@ -4140,6 +4171,8 @@ export type VideoEvent = ({
|
|
|
4140
4171
|
} & UnblockedUserEvent) | ({
|
|
4141
4172
|
type: 'call.updated';
|
|
4142
4173
|
} & CallUpdatedEvent) | ({
|
|
4174
|
+
type: 'call.user_muted';
|
|
4175
|
+
} & CallUserMuted) | ({
|
|
4143
4176
|
type: 'connection.ok';
|
|
4144
4177
|
} & ConnectedEvent) | ({
|
|
4145
4178
|
type: 'custom';
|
package/package.json
CHANGED
package/src/Call.ts
CHANGED
|
@@ -1544,7 +1544,11 @@ export class Call {
|
|
|
1544
1544
|
prevMeta?.settings.ring.incoming_call_timeout_ms,
|
|
1545
1545
|
currentMeta.settings.ring.incoming_call_timeout_ms,
|
|
1546
1546
|
];
|
|
1547
|
-
if (
|
|
1547
|
+
if (
|
|
1548
|
+
typeof timeoutMs === 'undefined' ||
|
|
1549
|
+
timeoutMs === prevTimeoutMs ||
|
|
1550
|
+
timeoutMs === 0
|
|
1551
|
+
)
|
|
1548
1552
|
return;
|
|
1549
1553
|
|
|
1550
1554
|
if (this.dropTimeout) clearTimeout(this.dropTimeout);
|
|
@@ -89,6 +89,7 @@ export const registerEventHandlers = (
|
|
|
89
89
|
'call.session_participant_left': watchCallSessionParticipantLeft(state),
|
|
90
90
|
'call.unblocked_user': watchUnblockedUser(state),
|
|
91
91
|
'call.updated': watchCallUpdated(state),
|
|
92
|
+
'call.user_muted': () => console.log('call.user_muted received'),
|
|
92
93
|
};
|
|
93
94
|
const eventHandlers = [
|
|
94
95
|
watchChangePublishQuality(dispatcher, call),
|
|
@@ -1551,6 +1551,37 @@ export interface CallUpdatedEvent {
|
|
|
1551
1551
|
*/
|
|
1552
1552
|
type: string;
|
|
1553
1553
|
}
|
|
1554
|
+
/**
|
|
1555
|
+
* This event is sent when a call member is muted
|
|
1556
|
+
* @export
|
|
1557
|
+
* @interface CallUserMuted
|
|
1558
|
+
*/
|
|
1559
|
+
export interface CallUserMuted {
|
|
1560
|
+
/**
|
|
1561
|
+
*
|
|
1562
|
+
* @type {string}
|
|
1563
|
+
* @memberof CallUserMuted
|
|
1564
|
+
*/
|
|
1565
|
+
call_cid: string;
|
|
1566
|
+
/**
|
|
1567
|
+
*
|
|
1568
|
+
* @type {string}
|
|
1569
|
+
* @memberof CallUserMuted
|
|
1570
|
+
*/
|
|
1571
|
+
created_at: string;
|
|
1572
|
+
/**
|
|
1573
|
+
* The type of event: "call.user_muted" in this case
|
|
1574
|
+
* @type {string}
|
|
1575
|
+
* @memberof CallUserMuted
|
|
1576
|
+
*/
|
|
1577
|
+
type: string;
|
|
1578
|
+
/**
|
|
1579
|
+
*
|
|
1580
|
+
* @type {Array<string>}
|
|
1581
|
+
* @memberof CallUserMuted
|
|
1582
|
+
*/
|
|
1583
|
+
user_ids: Array<string>;
|
|
1584
|
+
}
|
|
1554
1585
|
/**
|
|
1555
1586
|
*
|
|
1556
1587
|
* @export
|
|
@@ -4091,6 +4122,7 @@ export type VideoEvent =
|
|
|
4091
4122
|
| ({ type: 'call.session_started' } & CallSessionStartedEvent)
|
|
4092
4123
|
| ({ type: 'call.unblocked_user' } & UnblockedUserEvent)
|
|
4093
4124
|
| ({ type: 'call.updated' } & CallUpdatedEvent)
|
|
4125
|
+
| ({ type: 'call.user_muted' } & CallUserMuted)
|
|
4094
4126
|
| ({ type: 'connection.ok' } & ConnectedEvent)
|
|
4095
4127
|
| ({ type: 'custom' } & CustomVideoEvent)
|
|
4096
4128
|
| ({ type: 'health.check' } & HealthCheckEvent);
|