On goConnect send accept call and start setup
This commit is contained in:
parent
e65845ce9b
commit
6d13805ac6
@ -155,7 +155,13 @@ const getLocalStream = () => {
|
|||||||
|
|
||||||
const goConnect = () => {
|
const goConnect = () => {
|
||||||
console.log('[goConnect] device:', device);
|
console.log('[goConnect] device:', device);
|
||||||
device === undefined ? getRtpCapabilities() : goCreateTransport()
|
setTimeout(() => {
|
||||||
|
hub.emit(
|
||||||
|
'video',
|
||||||
|
JSON.stringify(answer)
|
||||||
|
);
|
||||||
|
device === undefined ? getRtpCapabilities() : goCreateTransport()
|
||||||
|
}, 7000);
|
||||||
}
|
}
|
||||||
|
|
||||||
const goCreateTransport = () => {
|
const goCreateTransport = () => {
|
||||||
@ -300,12 +306,12 @@ const connectSendTransport = async () => {
|
|||||||
};
|
};
|
||||||
console.log('SEND answer', answer);
|
console.log('SEND answer', answer);
|
||||||
|
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
hub.emit(
|
// hub.emit(
|
||||||
'video',
|
// 'video',
|
||||||
JSON.stringify(answer)
|
// JSON.stringify(answer)
|
||||||
);
|
// );
|
||||||
}, 7000);
|
// }, 7000);
|
||||||
|
|
||||||
// Enable Close call button
|
// Enable Close call button
|
||||||
const closeCallBtn = document.getElementById('btnCloseCall');
|
const closeCallBtn = document.getElementById('btnCloseCall');
|
||||||
|
Loading…
Reference in New Issue
Block a user