@lookloot/capture-sdk-overwolf-native 0.1.0 → 0.1.1
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/README.md +20 -17
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ The upload bridge is required for production video uploads because Overwolf repl
|
|
|
31
31
|
|
|
32
32
|
## Capture backend choice
|
|
33
33
|
|
|
34
|
-
The default `replay.captureBackend` is `"overwolf_recorder"`. Use it when you want Overwolf Recorder as the no-OBS capture engine:
|
|
34
|
+
The default `replay.captureBackend` is `"overwolf_recorder"`. Use it when you want Overwolf Recorder as the no-OBS capture engine:
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
const capture = new LookLootCapture({
|
|
@@ -39,10 +39,12 @@ const capture = new LookLootCapture({
|
|
|
39
39
|
getDeviceToken,
|
|
40
40
|
uploadBridge: window.looklootOverwolfUploadBridge,
|
|
41
41
|
upload: { videoBackend: "chunked_hls" },
|
|
42
|
-
});
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
});
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Developers can choose Overwolf Recorder in either Overwolf runtime. This is the classic Overwolf Native side of the same recorder path used by Overwolf Electron apps through `@lookloot/capture-sdk` with `captureEngine: "overwolf-recorder"`.
|
|
46
|
+
|
|
47
|
+
Apps that need user-selected window capture outside Overwolf Recorder support can opt into:
|
|
46
48
|
|
|
47
49
|
```ts
|
|
48
50
|
const capture = new LookLootCapture({
|
|
@@ -64,12 +66,13 @@ import {
|
|
|
64
66
|
createLookLootOverwolfNativeIntegration,
|
|
65
67
|
} from "@lookloot/capture-sdk-overwolf-native";
|
|
66
68
|
|
|
67
|
-
const lookloot = createLookLootOverwolfNativeIntegration({
|
|
68
|
-
appId: "your-registered-app-slug",
|
|
69
|
-
getDeviceToken,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
const lookloot = createLookLootOverwolfNativeIntegration({
|
|
70
|
+
appId: "your-registered-app-slug",
|
|
71
|
+
getDeviceToken,
|
|
72
|
+
autoStartOnGame: false,
|
|
73
|
+
nativeProcess: {
|
|
74
|
+
extraObjectId: "lookloot-process-presence",
|
|
75
|
+
gameCatalog: [
|
|
73
76
|
{
|
|
74
77
|
gameId: "roblox",
|
|
75
78
|
displayName: "Roblox",
|
|
@@ -79,12 +82,12 @@ const lookloot = createLookLootOverwolfNativeIntegration({
|
|
|
79
82
|
},
|
|
80
83
|
});
|
|
81
84
|
|
|
82
|
-
await lookloot.init();
|
|
83
|
-
await lookloot.start(); // detects the running game and requests the game window source
|
|
84
|
-
await lookloot.stop();
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
The lower-level pieces are exported too: `createLookLootOverwolfNativeInputSource()`, `getLookLootOverwolfRunningGame()`, `detectLookLootOverwolfNativeProcessGames()`, `requestLookLootOverwolfGameWindowSource()`, and `resolveLookLootOverwolfNativeProcessPlugin()`.
|
|
85
|
+
await lookloot.init();
|
|
86
|
+
await lookloot.start(); // detects the running game and requests the game window source
|
|
87
|
+
await lookloot.stop();
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The facade also exposes `getLiveInputEvents()`, `getRunningGame()`, `requestGameWindowSource()`, upload recovery, diagnostics, and local verification methods. The lower-level pieces are exported too: `createLookLootOverwolfNativeInputSource()`, `getLookLootOverwolfRunningGame()`, `detectLookLootOverwolfNativeProcessGames()`, `requestLookLootOverwolfGameWindowSource()`, and `resolveLookLootOverwolfNativeProcessPlugin()`.
|
|
88
91
|
|
|
89
92
|
## Verify locally before upload
|
|
90
93
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookloot/capture-sdk-overwolf-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "LookLoot Capture SDK adapter for classic Overwolf Native apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"prebuild": "node ../../scripts/run-pnpm.mjs --dir ../capture-contracts build",
|
|
20
20
|
"build": "tsup",
|
|
21
|
-
"prepublishOnly": "pnpm run build && npm pack --dry-run"
|
|
21
|
+
"prepublishOnly": "pnpm run build && npm pack --dry-run"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"lookloot",
|