Skip to content
Snippets Groups Projects
Commit e0e22733 authored by prlanzarin's avatar prlanzarin
Browse files

video-provider,screenshare: consider a stream unhealthy only when the peer fails

Done to avoid false positives where the stream would transition to the unhealthy UI state (or flicker between states) due to disconnected also triggering it, which is not fatal. Disconnected has to be used alongside getStats heuristics, which I removed due to issues with it, so I´m hardening the transition to fatal states only
parent 0a36da1e
No related branches found
No related tags found
Loading
......@@ -37,7 +37,7 @@ export const unsubscribeFromStreamStateChange = (eventTag, callback) => {
}
export const isStreamStateUnhealthy = (streamState) => {
return streamState === 'disconnected' || streamState === 'failed' || streamState === 'closed';
return streamState === 'failed' || streamState === 'closed';
}
export const isStreamStateHealthy = (streamState) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment