@lookloot/capture-sdk-overwolf-native 0.1.0 → 0.1.2
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 +2 -31
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,6 +42,8 @@ const capture = new LookLootCapture({
|
|
|
42
42
|
});
|
|
43
43
|
```
|
|
44
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
|
+
|
|
45
47
|
Apps that need user-selected window capture outside Overwolf Recorder support can opt into:
|
|
46
48
|
|
|
47
49
|
```ts
|
|
@@ -55,37 +57,6 @@ const capture = new LookLootCapture({
|
|
|
55
57
|
|
|
56
58
|
`browser_display_media` rejects monitor and browser-tab selections so it does not upload desktop capture. It uses playable WebM browser `Blob` chunks and does not require the file upload bridge for video.
|
|
57
59
|
|
|
58
|
-
## LookLoot-style native integration
|
|
59
|
-
|
|
60
|
-
For apps that want the same integrated path used by LookLoot's Overwolf Native app, use the SDK facade instead of recreating the app glue yourself. It wires the native input adapter, native process game detection, direct game-window stream selection, and chunked upload defaults around `LookLootCapture`.
|
|
61
|
-
|
|
62
|
-
```ts
|
|
63
|
-
import {
|
|
64
|
-
createLookLootOverwolfNativeIntegration,
|
|
65
|
-
} from "@lookloot/capture-sdk-overwolf-native";
|
|
66
|
-
|
|
67
|
-
const lookloot = createLookLootOverwolfNativeIntegration({
|
|
68
|
-
appId: "your-registered-app-slug",
|
|
69
|
-
getDeviceToken,
|
|
70
|
-
nativeProcess: {
|
|
71
|
-
extraObjectId: "lookloot-process-presence",
|
|
72
|
-
gameCatalog: [
|
|
73
|
-
{
|
|
74
|
-
gameId: "roblox",
|
|
75
|
-
displayName: "Roblox",
|
|
76
|
-
processNames: ["RobloxPlayerBeta.exe"],
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
|
|
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()`.
|
|
88
|
-
|
|
89
60
|
## Verify locally before upload
|
|
90
61
|
|
|
91
62
|
Use the native verification helpers from a debug menu or smoke-test command. They do not call `getDeviceToken`, create a LookLoot session, or upload anything.
|
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.2",
|
|
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",
|