fix(ui/tracker): fix muting stream button, cleanup

This commit is contained in:
sylenien 2022-08-09 12:31:08 +02:00 committed by Delirium
parent f791375d42
commit 29599625a9
4 changed files with 6 additions and 6 deletions

View file

@ -69,7 +69,6 @@ function AssistActions({
}, [peerConnectionStatus]);
const addIncomeStream = (stream: MediaStream) => {
console.log('new stream in component')
setIncomeStream(oldState => [...oldState, stream]);
}

View file

@ -341,7 +341,7 @@ export default class AssistManager {
call.on('stream', stream => {
this.callArgs && this.callArgs.onStream(stream)
});
call.peerConnection.addEventListener("track", e => console.log('newtrack',e.track))
// call.peerConnection.addEventListener("track", e => console.log('newtrack',e.track))
call.on("close", this.onRemoteCallEnd)
call.on("error", (e) => {
@ -467,7 +467,7 @@ export default class AssistManager {
getState().calling !== CallingState.OnCall && update({ calling: CallingState.OnCall })
this.callArgs && this.callArgs.onStream(stream)
});
call.peerConnection.addEventListener("track", e => console.log('newtrack',e.track))
// call.peerConnection.addEventListener("track", e => console.log('newtrack',e.track))
call.on("close", this.onRemoteCallEnd)
call.on("error", (e) => {

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker-assist",
"description": "Tracker plugin for screen assistance through the WebRTC",
"version": "3.5.16",
"version": "3.5.17",
"keywords": [
"WebRTC",
"assistance",

View file

@ -361,13 +361,14 @@ export default class Assist {
callUI = new CallWindow(app.debug.error)
// TODO: as constructor options
callUI.setCallEndAction(initiateCallEnd)
callUI.setLocalStreams(Object.values(lStreams))
}
if (!annot) {
annot = new AnnotationCanvas()
annot.mount()
}
// have to be updated
callUI.setLocalStreams(Object.values(lStreams))
call.on('error', e => {
app.debug.warn('Call error:', e)
initiateCallEnd()