mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
remove everything related to rover mic while keeping tts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user