remove everything related to rover mic while keeping tts

This commit is contained in:
legop3
2025-11-27 23:15:21 -05:00
parent 509dbd870a
commit 5f5591ca42
11 changed files with 8 additions and 173 deletions
-14
View File
@@ -71,23 +71,9 @@ function canView(socket) {
app.post('/mediamtx/auth', (req, res) => {
const body = req.body || {};
const path = (body.path || '').replace(/^\//, '');
const password = body.pass || body.password || '';
const action = body.action || '';
const sessionId = body.user;
const streamInfo = extractStreamInfo(path);
// Allow internal bridge (server-side audio transcode) to pull/push without a websocket session.
if (body.user === 'bridge' && password === 'bridge') {
return res.status(200).end();
}
// Also allow localhost reads of *-raw paths for the bridge even if creds are missing.
if (
streamInfo?.id?.endsWith('-raw') &&
(req.ip === '127.0.0.1' || req.ip === '::1')
) {
return res.status(200).end();
}
logger.info('video auth request', { path: body.path, sessionId, stream: streamInfo });
if (!sessionId || !streamInfo?.id) {