Skip to content

Commit

Permalink
hardcode test profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelecerati committed Apr 29, 2024
1 parent 3a70fc0 commit 6fb0021
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion packages/api/src/controllers/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,32 @@ app.put(
logger.info(
`pull request creatorId=${rawPayload.creatorId} is a test creatorId`
);
profiles = rawPayload.profiles; // TODO: specify here the hardcoded profiles for testing
profiles = [
{
name: "240p0",
fps: 0,
bitrate: 250000,
width: 426,
height: 240,
profile: "H264ConstrainedHigh",
},
{
name: "360p0",
fps: 0,
bitrate: 800000,
width: 640,
height: 360,
profile: "H264ConstrainedHigh",
},
{
name: "480p0",
fps: 0,
bitrate: 1600000,
width: 854,
height: 480,
profile: "H264ConstrainedHigh",
},
];
}
}

Expand Down

0 comments on commit 6fb0021

Please sign in to comment.