Files
netris-nestri/packages/sdk/examples/test.ts
2026-07-24 14:20:06 +03:00

21 lines
525 B
TypeScript

import { session } from "../src/index.js";
const myTestSession = session({
description: "A game test session",
resolution: "1080x1920",
videoBitDepth: 8,
machine: "ns3-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);
});