diff --git a/src/lang/std/engineConnection.ts b/src/lang/std/engineConnection.ts index 739f2b1b9..0467d6656 100644 --- a/src/lang/std/engineConnection.ts +++ b/src/lang/std/engineConnection.ts @@ -147,7 +147,6 @@ export enum ConnectionError { Unset = 0, LongLoadingTime, - LostVideoStream, ICENegotiate, DataChannelError, WebSocketError, @@ -168,8 +167,6 @@ export const CONNECTION_ERROR_TEXT: Record = { [ConnectionError.Unset]: '', [ConnectionError.LongLoadingTime]: 'Loading is taking longer than expected...', - [ConnectionError.LostVideoStream]: - 'Lost connection to video stream... Reconnecting...', [ConnectionError.ICENegotiate]: 'ICE negotiation failed.', [ConnectionError.DataChannelError]: 'The data channel signaled an error.', [ConnectionError.WebSocketError]: 'The websocket signaled an error.', @@ -1350,17 +1347,9 @@ export class EngineCommandManager extends EventTarget { console.log('received track', mediaStream) mediaStream.getVideoTracks()[0].addEventListener('mute', () => { - if (this.engineConnection) { - this.engineConnection.state = { - type: EngineConnectionStateType.Disconnecting, - value: { - type: DisconnectingType.Error, - value: { - error: ConnectionError.LostVideoStream, - }, - }, - } - } + console.error( + 'video track mute: check webrtc internals -> inbound rtp' + ) }) setMediaStream(mediaStream)