WIP: router-close-connections #2

Closed
sergiu wants to merge 13 commits from router-close-connections into master
Showing only changes of commit b909e7ec58 - Show all commits

View File

@ -156,6 +156,17 @@ const getLocalStream = () => {
const goConnect = () => {
console.log('[goConnect] device:', device);
setTimeout(() => {
const answer = {
origin_asset_id: ASSET_ID,
dest_asset_id: originAssetId || parseInt(urlParams.get('dest_asset_id')),
type: 'notify-answer',
origin_asset_priority: 1,
origin_asset_type_name: ASSET_TYPE,
origin_asset_name: ASSET_NAME,
video_call_id: callId,
answer: 'accepted', // answer: 'rejected'
};
console.log('SEND answer', answer);
hub.emit(
'video',
JSON.stringify(answer)
@ -294,17 +305,17 @@ const connectSendTransport = async () => {
// close video track
})
const answer = {
origin_asset_id: ASSET_ID,
dest_asset_id: originAssetId || parseInt(urlParams.get('dest_asset_id')),
type: 'notify-answer',
origin_asset_priority: 1,
origin_asset_type_name: ASSET_TYPE,
origin_asset_name: ASSET_NAME,
video_call_id: callId,
answer: 'accepted', // answer: 'rejected'
};
console.log('SEND answer', answer);
// const answer = {
// origin_asset_id: ASSET_ID,
// dest_asset_id: originAssetId || parseInt(urlParams.get('dest_asset_id')),
// type: 'notify-answer',
// origin_asset_priority: 1,
// origin_asset_type_name: ASSET_TYPE,
// origin_asset_name: ASSET_NAME,
// video_call_id: callId,
// answer: 'accepted', // answer: 'rejected'
// };
// console.log('SEND answer', answer);
// setTimeout(() => {
// hub.emit(