Add stop command

This commit is contained in:
2025-04-20 01:23:34 -07:00
parent dd79fd9ecd
commit 98f4bd032a
2 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,11 @@ apiRouter.post("/pause", withErrorHandling(async (req, res) => {
res.send(JSON.stringify({ success: true }));
}));
apiRouter.post("/stop", withErrorHandling(async (req, res) => {
await mediaPlayer.stop();
res.send(JSON.stringify({ success: true }));
}));
apiRouter.post("/skip", withErrorHandling(async (req, res) => {
await mediaPlayer.skip();
res.send(JSON.stringify({ success: true }));