@overwolf/ow-electron-packages-types 1.1.14-beta.2 → 1.1.14-beta.4
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/package.json +1 -1
- package/types.d.ts +24 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overwolf/ow-electron-packages-types",
|
|
3
|
-
"version": "1.1.14-beta.
|
|
3
|
+
"version": "1.1.14-beta.4",
|
|
4
4
|
"description": "Type definition file for autocompletion and documentation purposes for ow-electron packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "types.d.ts",
|
package/types.d.ts
CHANGED
|
@@ -1020,8 +1020,8 @@ interface VideoEncoderInfo extends EncoderInfoBase {
|
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Information about a GPU adapter (graphics device).
|
|
1022
1022
|
*
|
|
1023
|
-
* This structure provides metadata such as adapter name, driver,
|
|
1024
|
-
* hardware-accelerated GPU scheduling (HAGS) support.
|
|
1023
|
+
* This structure provides metadata such as adapter name, driver,
|
|
1024
|
+
* hardware-accelerated GPU scheduling (HAGS) support, and PCI vendor/device IDs.
|
|
1025
1025
|
*
|
|
1026
1026
|
* @example
|
|
1027
1027
|
* const adapter: AdapterInfo = {
|
|
@@ -1029,7 +1029,9 @@ interface VideoEncoderInfo extends EncoderInfoBase {
|
|
|
1029
1029
|
* name: 'NVIDIA GeForce RTX 3080',
|
|
1030
1030
|
* driver: '546.33',
|
|
1031
1031
|
* hagsEnabled: true,
|
|
1032
|
-
* hagsEnabledByDefault: false
|
|
1032
|
+
* hagsEnabledByDefault: false,
|
|
1033
|
+
* vendorId: 0x10DE,
|
|
1034
|
+
* deviceId: 0x2206
|
|
1033
1035
|
* };
|
|
1034
1036
|
*/
|
|
1035
1037
|
interface AdapterInfo {
|
|
@@ -1057,6 +1059,17 @@ interface AdapterInfo {
|
|
|
1057
1059
|
* Indicates whether HAGS is enabled by default on this adapter.
|
|
1058
1060
|
*/
|
|
1059
1061
|
readonly hagsEnabledByDefault: boolean;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* The PCI vendor ID of the adapter.
|
|
1065
|
+
* Common values: 0x10DE (NVIDIA), 0x1002 (AMD), 0x8086 (Intel).
|
|
1066
|
+
*/
|
|
1067
|
+
readonly vendorId: number;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* The PCI device ID of the adapter, identifying the GPU model within its vendor.
|
|
1071
|
+
*/
|
|
1072
|
+
readonly deviceId: number;
|
|
1060
1073
|
}
|
|
1061
1074
|
|
|
1062
1075
|
|
|
@@ -4386,7 +4399,7 @@ interface RecordingAppOptions {
|
|
|
4386
4399
|
* | Code | Name | Description |
|
|
4387
4400
|
* | ------- | ---------------------------- | -------------------------------------------------------------------------------- |
|
|
4388
4401
|
* | `-1001` | `Unknown` | Generic unknown error. |
|
|
4389
|
-
* | `-1000` | `ProcessTerminated` | OBS process
|
|
4402
|
+
* | `-1000` | `ProcessTerminated` | OBS process ended: a crash, or a restart after a hung stop. |
|
|
4390
4403
|
* | `-999` | `MissingBinaries` | Missing binaries required for recording. |
|
|
4391
4404
|
* | `-998` | `ConnectionOBSError` | Failed to connect to the OBS process. |
|
|
4392
4405
|
* | `-997` | `AlreadyRunning` | Operation attempted while recording is already running. |
|
|
@@ -4417,7 +4430,7 @@ interface RecordingAppOptions {
|
|
|
4417
4430
|
*/
|
|
4418
4431
|
type ErrorCode =
|
|
4419
4432
|
| -1001 // Generic unknown error. 'Unknown'
|
|
4420
|
-
| -1000 // OBS process
|
|
4433
|
+
| -1000 // OBS process ended: a crash, or a restart after a hung stop. 'ProcessTerminated'
|
|
4421
4434
|
| -999 // Missing binaries required for recording. 'MissingBinaries'
|
|
4422
4435
|
| -998 // Failed to connect to the OBS process. 'ConnectionOBSError'
|
|
4423
4436
|
| -997 // Operation attempted while recording is already running. 'AlreadyRunning'
|
|
@@ -4764,6 +4777,7 @@ interface RecordStopEventArgs extends RecordEventArgs {
|
|
|
4764
4777
|
/**
|
|
4765
4778
|
* The total duration of the video in milliseconds,
|
|
4766
4779
|
* available when the recording ends successfully.
|
|
4780
|
+
* `0` when OBS ended before the recording stopped (`ProcessTerminated`).
|
|
4767
4781
|
*/
|
|
4768
4782
|
duration?: number;
|
|
4769
4783
|
|
|
@@ -4781,6 +4795,7 @@ interface RecordStopEventArgs extends RecordEventArgs {
|
|
|
4781
4795
|
/**
|
|
4782
4796
|
* The epoch timestamp (in milliseconds) representing
|
|
4783
4797
|
* when the recording started.
|
|
4798
|
+
* `0` when OBS ended before the recording stopped (`ProcessTerminated`).
|
|
4784
4799
|
*/
|
|
4785
4800
|
startTimeEpoch?: number;
|
|
4786
4801
|
}
|
|
@@ -4839,11 +4854,13 @@ interface SplitRecordArgs extends RecordEventArgs {
|
|
|
4839
4854
|
interface ReplayVideo extends RecordEventArgs {
|
|
4840
4855
|
/**
|
|
4841
4856
|
* Duration of the replay video in milliseconds.
|
|
4857
|
+
* `0` when OBS ended before the replay was saved (`ProcessTerminated`).
|
|
4842
4858
|
*/
|
|
4843
4859
|
duration: number;
|
|
4844
4860
|
|
|
4845
4861
|
/**
|
|
4846
4862
|
* Epoch UTC timestamp (in milliseconds) of when the replay started (first frame).
|
|
4863
|
+
* `0` when OBS ended before the replay was saved (`ProcessTerminated`).
|
|
4847
4864
|
*/
|
|
4848
4865
|
startTimeEpoch: number;
|
|
4849
4866
|
}
|
|
@@ -4981,7 +4998,8 @@ interface PerformanceWarningArgs {
|
|
|
4981
4998
|
skippedFrames: number;
|
|
4982
4999
|
|
|
4983
5000
|
/**
|
|
4984
|
-
* Number of frames measured
|
|
5001
|
+
* Number of frames measured: frames sent to the encoder for `encoding-lag`,
|
|
5002
|
+
* rendered frames for `rendering-lag`.
|
|
4985
5003
|
*/
|
|
4986
5004
|
totalFrames: number;
|
|
4987
5005
|
}
|