@stream-io/video-client 0.3.7 → 0.3.9
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 +8 -1
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +8 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -1
- package/dist/index.es.js.map +1 -1
- package/dist/src/coordinator/connection/types.d.ts +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +6 -0
- package/src/coordinator/connection/types.ts +3 -3
|
@@ -2,11 +2,11 @@ import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
2
2
|
import { StableWSConnection } from './connection';
|
|
3
3
|
import { ConnectedEvent, UserRequest, VideoEvent } from '../../gen/coordinator';
|
|
4
4
|
export type UR = Record<string, unknown>;
|
|
5
|
-
export type User = (UserRequest & {
|
|
5
|
+
export type User = (Omit<UserRequest, 'role'> & {
|
|
6
6
|
type?: 'authenticated';
|
|
7
|
-
}) | (UserRequest & {
|
|
7
|
+
}) | (Omit<UserRequest, 'role'> & {
|
|
8
8
|
type: 'guest';
|
|
9
|
-
}) | (Omit<UserRequest, 'id'> & {
|
|
9
|
+
}) | (Omit<UserRequest, 'id' | 'role'> & {
|
|
10
10
|
id?: '!anon';
|
|
11
11
|
type: 'anonymous';
|
|
12
12
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.3.
|
|
1
|
+
export declare const version = "0.3.9";
|
package/package.json
CHANGED
package/src/Call.ts
CHANGED
|
@@ -1120,6 +1120,12 @@ export class Call {
|
|
|
1120
1120
|
const participants = this.state.updateParticipants(
|
|
1121
1121
|
Object.entries(changes).reduce<StreamVideoParticipantPatches>(
|
|
1122
1122
|
(acc, [sessionId, change]) => {
|
|
1123
|
+
if (change.dimension?.height) {
|
|
1124
|
+
change.dimension.height = Math.ceil(change.dimension.height);
|
|
1125
|
+
}
|
|
1126
|
+
if (change.dimension?.width) {
|
|
1127
|
+
change.dimension.width = Math.ceil(change.dimension.width);
|
|
1128
|
+
}
|
|
1123
1129
|
const prop: keyof StreamVideoParticipant | undefined =
|
|
1124
1130
|
kind === 'video'
|
|
1125
1131
|
? 'videoDimension'
|
|
@@ -5,9 +5,9 @@ import { ConnectedEvent, UserRequest, VideoEvent } from '../../gen/coordinator';
|
|
|
5
5
|
export type UR = Record<string, unknown>;
|
|
6
6
|
|
|
7
7
|
export type User =
|
|
8
|
-
| (UserRequest & { type?: 'authenticated' })
|
|
9
|
-
| (UserRequest & { type: 'guest' })
|
|
10
|
-
| (Omit<UserRequest, 'id'> & {
|
|
8
|
+
| (Omit<UserRequest, 'role'> & { type?: 'authenticated' })
|
|
9
|
+
| (Omit<UserRequest, 'role'> & { type: 'guest' })
|
|
10
|
+
| (Omit<UserRequest, 'id' | 'role'> & {
|
|
11
11
|
id?: '!anon';
|
|
12
12
|
type: 'anonymous';
|
|
13
13
|
});
|