Skip to content

Commit 4e8826a

Browse files
committed
Merge branch 'main' into PBE-5855-feat/react-native-video-design-v2
2 parents d8f59c1 + 84d49b3 commit 4e8826a

File tree

19 files changed

+393
-32
lines changed

19 files changed

+393
-32
lines changed

packages/client/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
44

5+
## [1.10.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.9.3...@stream-io/video-client-1.10.0) (2024-10-30)
6+
7+
8+
### Features
9+
10+
* report input devices in call stats ([#1533](https://github.com/GetStream/stream-video-js/issues/1533)) ([f34fe0a](https://github.com/GetStream/stream-video-js/commit/f34fe0a0444903099565ae55a9639e39fc19b76c))
11+
512
## [1.9.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.9.2...@stream-io/video-client-1.9.3) (2024-10-28)
613

714

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stream-io/video-client",
3-
"version": "1.9.3",
3+
"version": "1.10.0",
44
"packageManager": "[email protected]",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.es.js",

packages/client/src/Call.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,9 @@ export class Call {
993993
options: statsOptions,
994994
subscriber: this.subscriber,
995995
publisher: this.publisher,
996+
microphone: this.microphone,
997+
camera: this.camera,
998+
state: this.state,
996999
});
9971000
this.sfuStatsReporter.start();
9981001
}

packages/client/src/coordinator/connection/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class StreamClient {
252252
) {
253253
this.logger(
254254
'warn',
255-
'Please do not use connectUser server side. connectUser impacts MAU and concurrent connection usage and thus your bill. If you have a valid use-case, add "allowServerSideConnect: true" to the client options to disable this warning.',
255+
'Please do not use connectUser server side. Use our @stream-io/node-sdk instead: https://getstream.io/video/docs/api/',
256256
);
257257
}
258258

packages/client/src/gen/video/sfu/models/models.ts

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,51 @@ export interface CallGrants {
442442
*/
443443
canScreenshare: boolean;
444444
}
445+
/**
446+
* @generated from protobuf message stream.video.sfu.models.InputDevices
447+
*/
448+
export interface InputDevices {
449+
/**
450+
* @generated from protobuf field: repeated string available_devices = 1;
451+
*/
452+
availableDevices: string[];
453+
/**
454+
* @generated from protobuf field: string current_device = 2;
455+
*/
456+
currentDevice: string;
457+
/**
458+
* @generated from protobuf field: bool is_permitted = 3;
459+
*/
460+
isPermitted: boolean;
461+
}
462+
/**
463+
* @generated from protobuf message stream.video.sfu.models.AndroidState
464+
*/
465+
export interface AndroidState {
466+
/**
467+
* @generated from protobuf field: stream.video.sfu.models.AndroidThermalState thermal_state = 1;
468+
*/
469+
thermalState: AndroidThermalState;
470+
/**
471+
* @generated from protobuf field: bool is_power_saver_mode = 2;
472+
*/
473+
isPowerSaverMode: boolean;
474+
}
475+
/**
476+
* @generated from protobuf message stream.video.sfu.models.AppleState
477+
*/
478+
export interface AppleState {
479+
/**
480+
* @generated from protobuf field: stream.video.sfu.models.AppleThermalState thermal_state = 1;
481+
*/
482+
thermalState: AppleThermalState;
483+
/**
484+
* https://developer.apple.com/documentation/foundation/processinfo/1617047-islowpowermodeenabled
485+
*
486+
* @generated from protobuf field: bool is_low_power_mode_enabled = 2;
487+
*/
488+
isLowPowerModeEnabled: boolean;
489+
}
445490
/**
446491
* @generated from protobuf enum stream.video.sfu.models.PeerType
447492
*/
@@ -773,6 +818,74 @@ export enum WebsocketReconnectStrategy {
773818
*/
774819
MIGRATE = 4,
775820
}
821+
/**
822+
* AndroidThermalState is reported by the Android API. The full list of values is documented here
823+
* https://developer.android.com/reference/android/os/PowerManager.html#getCurrentThermalStatus()
824+
*
825+
* @generated from protobuf enum stream.video.sfu.models.AndroidThermalState
826+
*/
827+
export enum AndroidThermalState {
828+
/**
829+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_UNSPECIFIED = 0;
830+
*/
831+
UNSPECIFIED = 0,
832+
/**
833+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_NONE = 1;
834+
*/
835+
NONE = 1,
836+
/**
837+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_LIGHT = 2;
838+
*/
839+
LIGHT = 2,
840+
/**
841+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_MODERATE = 3;
842+
*/
843+
MODERATE = 3,
844+
/**
845+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_SEVERE = 4;
846+
*/
847+
SEVERE = 4,
848+
/**
849+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_CRITICAL = 5;
850+
*/
851+
CRITICAL = 5,
852+
/**
853+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_EMERGENCY = 6;
854+
*/
855+
EMERGENCY = 6,
856+
/**
857+
* @generated from protobuf enum value: ANDROID_THERMAL_STATE_SHUTDOWN = 7;
858+
*/
859+
SHUTDOWN = 7,
860+
}
861+
/**
862+
* AppleThermalState is the thermal state as reported by Apple devices when available or applicable to the platform.
863+
* The full list of states (enum) is available here: https://developer.apple.com/documentation/foundation/processinfo/thermalstate
864+
*
865+
* @generated from protobuf enum stream.video.sfu.models.AppleThermalState
866+
*/
867+
export enum AppleThermalState {
868+
/**
869+
* @generated from protobuf enum value: APPLE_THERMAL_STATE_UNSPECIFIED = 0;
870+
*/
871+
UNSPECIFIED = 0,
872+
/**
873+
* @generated from protobuf enum value: APPLE_THERMAL_STATE_NOMINAL = 1;
874+
*/
875+
NOMINAL = 1,
876+
/**
877+
* @generated from protobuf enum value: APPLE_THERMAL_STATE_FAIR = 2;
878+
*/
879+
FAIR = 2,
880+
/**
881+
* @generated from protobuf enum value: APPLE_THERMAL_STATE_SERIOUS = 3;
882+
*/
883+
SERIOUS = 3,
884+
/**
885+
* @generated from protobuf enum value: APPLE_THERMAL_STATE_CRITICAL = 4;
886+
*/
887+
CRITICAL = 4,
888+
}
776889
// @generated message type with reflection information, may provide speed optimized methods
777890
class CallState$Type extends MessageType<CallState> {
778891
constructor() {
@@ -1211,3 +1324,82 @@ class CallGrants$Type extends MessageType<CallGrants> {
12111324
* @generated MessageType for protobuf message stream.video.sfu.models.CallGrants
12121325
*/
12131326
export const CallGrants = new CallGrants$Type();
1327+
// @generated message type with reflection information, may provide speed optimized methods
1328+
class InputDevices$Type extends MessageType<InputDevices> {
1329+
constructor() {
1330+
super('stream.video.sfu.models.InputDevices', [
1331+
{
1332+
no: 1,
1333+
name: 'available_devices',
1334+
kind: 'scalar',
1335+
repeat: 2 /*RepeatType.UNPACKED*/,
1336+
T: 9 /*ScalarType.STRING*/,
1337+
},
1338+
{
1339+
no: 2,
1340+
name: 'current_device',
1341+
kind: 'scalar',
1342+
T: 9 /*ScalarType.STRING*/,
1343+
},
1344+
{ no: 3, name: 'is_permitted', kind: 'scalar', T: 8 /*ScalarType.BOOL*/ },
1345+
]);
1346+
}
1347+
}
1348+
/**
1349+
* @generated MessageType for protobuf message stream.video.sfu.models.InputDevices
1350+
*/
1351+
export const InputDevices = new InputDevices$Type();
1352+
// @generated message type with reflection information, may provide speed optimized methods
1353+
class AndroidState$Type extends MessageType<AndroidState> {
1354+
constructor() {
1355+
super('stream.video.sfu.models.AndroidState', [
1356+
{
1357+
no: 1,
1358+
name: 'thermal_state',
1359+
kind: 'enum',
1360+
T: () => [
1361+
'stream.video.sfu.models.AndroidThermalState',
1362+
AndroidThermalState,
1363+
'ANDROID_THERMAL_STATE_',
1364+
],
1365+
},
1366+
{
1367+
no: 2,
1368+
name: 'is_power_saver_mode',
1369+
kind: 'scalar',
1370+
T: 8 /*ScalarType.BOOL*/,
1371+
},
1372+
]);
1373+
}
1374+
}
1375+
/**
1376+
* @generated MessageType for protobuf message stream.video.sfu.models.AndroidState
1377+
*/
1378+
export const AndroidState = new AndroidState$Type();
1379+
// @generated message type with reflection information, may provide speed optimized methods
1380+
class AppleState$Type extends MessageType<AppleState> {
1381+
constructor() {
1382+
super('stream.video.sfu.models.AppleState', [
1383+
{
1384+
no: 1,
1385+
name: 'thermal_state',
1386+
kind: 'enum',
1387+
T: () => [
1388+
'stream.video.sfu.models.AppleThermalState',
1389+
AppleThermalState,
1390+
'APPLE_THERMAL_STATE_',
1391+
],
1392+
},
1393+
{
1394+
no: 2,
1395+
name: 'is_low_power_mode_enabled',
1396+
kind: 'scalar',
1397+
T: 8 /*ScalarType.BOOL*/,
1398+
},
1399+
]);
1400+
}
1401+
}
1402+
/**
1403+
* @generated MessageType for protobuf message stream.video.sfu.models.AppleState
1404+
*/
1405+
export const AppleState = new AppleState$Type();

packages/client/src/gen/video/sfu/signal_rpc/signal.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
// @generated from protobuf file "video/sfu/signal_rpc/signal.proto" (package "stream.video.sfu.signal", syntax proto3)
44
// tslint:disable
55
import {
6+
AndroidState,
7+
AppleState,
68
Error,
79
ICETrickle,
10+
InputDevices,
811
PeerType,
912
TrackInfo,
1013
TrackType,
@@ -77,6 +80,35 @@ export interface SendStatsRequest {
7780
* @generated from protobuf field: string sdk_version = 6;
7881
*/
7982
sdkVersion: string;
83+
/**
84+
* @generated from protobuf field: stream.video.sfu.models.InputDevices audio_devices = 7;
85+
*/
86+
audioDevices?: InputDevices;
87+
/**
88+
* @generated from protobuf field: stream.video.sfu.models.InputDevices video_devices = 8;
89+
*/
90+
videoDevices?: InputDevices;
91+
/**
92+
* @generated from protobuf oneof: device_state
93+
*/
94+
deviceState:
95+
| {
96+
oneofKind: 'android';
97+
/**
98+
* @generated from protobuf field: stream.video.sfu.models.AndroidState android = 9;
99+
*/
100+
android: AndroidState;
101+
}
102+
| {
103+
oneofKind: 'apple';
104+
/**
105+
* @generated from protobuf field: stream.video.sfu.models.AppleState apple = 10;
106+
*/
107+
apple: AppleState;
108+
}
109+
| {
110+
oneofKind: undefined;
111+
};
80112
}
81113
/**
82114
* @generated from protobuf message stream.video.sfu.signal.SendStatsResponse
@@ -364,6 +396,22 @@ class SendStatsRequest$Type extends MessageType<SendStatsRequest> {
364396
kind: 'scalar',
365397
T: 9 /*ScalarType.STRING*/,
366398
},
399+
{ no: 7, name: 'audio_devices', kind: 'message', T: () => InputDevices },
400+
{ no: 8, name: 'video_devices', kind: 'message', T: () => InputDevices },
401+
{
402+
no: 9,
403+
name: 'android',
404+
kind: 'message',
405+
oneof: 'deviceState',
406+
T: () => AndroidState,
407+
},
408+
{
409+
no: 10,
410+
name: 'apple',
411+
kind: 'message',
412+
oneof: 'deviceState',
413+
T: () => AppleState,
414+
},
367415
]);
368416
}
369417
}

0 commit comments

Comments
 (0)