Added room it when close transport; Added ts config file

This commit is contained in:
Sergiu Toma 2022-08-11 11:55:11 +03:00
parent 112ab0b229
commit c49da6696c

View File

@ -400,6 +400,9 @@ const connectRecvTransport = async () => {
const closeCall = () => { const closeCall = () => {
console.log('closeCall'); console.log('closeCall');
// Reset settings and send closeTransport to video server
resetCallSettings()
// Emit 'notify-end' to Hub so the consumer will know to close the video // Emit 'notify-end' to Hub so the consumer will know to close the video
const notifyEnd = { const notifyEnd = {
origin_asset_id: ASSET_ID, origin_asset_id: ASSET_ID,
@ -414,8 +417,6 @@ const closeCall = () => {
const closeCallBtn = document.getElementById('btnCloseCall') const closeCallBtn = document.getElementById('btnCloseCall')
closeCallBtn.setAttribute('disabled', '') closeCallBtn.setAttribute('disabled', '')
// Reset settings and send closeTransport to video server
resetCallSettings()
} }
btnLocalVideo.addEventListener('click', getLocalStream) btnLocalVideo.addEventListener('click', getLocalStream)