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
1 changed files with 3 additions and 2 deletions

View File

@ -400,6 +400,9 @@ const connectRecvTransport = async () => {
const 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
const notifyEnd = {
origin_asset_id: ASSET_ID,
@ -414,8 +417,6 @@ const closeCall = () => {
const closeCallBtn = document.getElementById('btnCloseCall')
closeCallBtn.setAttribute('disabled', '')
// Reset settings and send closeTransport to video server
resetCallSettings()
}
btnLocalVideo.addEventListener('click', getLocalStream)