mirror of
https://github.com/nestriness/nestri.git
synced 2026-08-02 01:35:18 +03:00
21 lines
525 B
TypeScript
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);
|
|
});
|