mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
analytics and embed meta update!!!
This commit is contained in:
@@ -10,7 +10,6 @@ import { useVideoRequests } from '../../hooks/useVideoRequests.js';
|
||||
import { useRoverSnapshots } from '../../hooks/useRoverSnapshots.js';
|
||||
import { useSettingsNamespace } from '../../settings/index.js';
|
||||
import { AUDIO_SETTINGS_DEFAULTS, VIDEO_SETTINGS_DEFAULTS } from '../../settings/namespaces.js';
|
||||
import { trackAnalyticsEventThrottled } from '../../analytics/index.js';
|
||||
import {
|
||||
RESTART_DELAY_MS,
|
||||
UNMUTE_RETRY_MS,
|
||||
@@ -439,20 +438,6 @@ export default function RoverMediaPlayer({
|
||||
ensurePlayback();
|
||||
}
|
||||
if (['error', 'failed', 'disconnected', 'closed'].includes(nextStatus)) {
|
||||
/*
|
||||
WHEP status changes can repeat during automatic restart attempts. The
|
||||
throttled event keeps media reliability visible in analytics without
|
||||
reporting every retry loop as a separate user action.
|
||||
*/
|
||||
trackAnalyticsEventThrottled(
|
||||
'whep_player_error',
|
||||
{
|
||||
roverId: effectiveRoverId,
|
||||
status: nextStatus,
|
||||
detail: info || '',
|
||||
},
|
||||
{ key: `${effectiveRoverId || 'unknown'}:${nextStatus}:${info || ''}`, throttleMs: 60 * 1000 },
|
||||
);
|
||||
scheduleRestart();
|
||||
}
|
||||
};
|
||||
@@ -469,15 +454,6 @@ export default function RoverMediaPlayer({
|
||||
if (!active) return;
|
||||
setStatus('error');
|
||||
setDetail(err.message);
|
||||
trackAnalyticsEventThrottled(
|
||||
'whep_player_error',
|
||||
{
|
||||
roverId: effectiveRoverId,
|
||||
status: 'start_failed',
|
||||
detail: err.message,
|
||||
},
|
||||
{ key: `${effectiveRoverId || 'unknown'}:start_failed:${err.message}`, throttleMs: 60 * 1000 },
|
||||
);
|
||||
scheduleRestart();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user