mirror of
https://github.com/nestriness/nestri.git
synced 2026-08-02 01:35:18 +03:00
feat: Add a lot of stuff
This commit is contained in:
22
packages/sdk/examples/test.ts
Normal file
22
packages/sdk/examples/test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { session } from "../src/index.js";
|
||||
|
||||
const myTestSession = session({
|
||||
id: "test-session",
|
||||
description: "A game test session",
|
||||
resolution: "1080x1920",
|
||||
videoBitDepth: 8,
|
||||
machine: "gpu-medium",
|
||||
videoCodec: "h264",
|
||||
framerate: 60,
|
||||
audioBitrate: 128,
|
||||
gpuCardPath: "/dev/dri/renderD128",
|
||||
|
||||
run: async (payload) => {
|
||||
console.log("Running test session with payload:", payload);
|
||||
return { message: "Test session completed" };
|
||||
},
|
||||
});
|
||||
|
||||
myTestSession.start().then((result) => {
|
||||
console.log("Session result:", result);
|
||||
});
|
||||
Reference in New Issue
Block a user