Update package.json(build/dev start commands); Added README

This commit is contained in:
2022-08-09 18:58:17 +03:00
parent 9cc00c05fd
commit c8a774a903
5 changed files with 3378 additions and 75 deletions

View File

@ -20723,7 +20723,6 @@ if (IS_PRODUCER === true) {
if (parsedData.type === 'notify-end') {
console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId);
socket.emit('transportclose')
resetCallSettings()
}
})
@ -21010,6 +21009,7 @@ const createRecvTransport = async () => {
}
const resetCallSettings = () => {
socket.emit('transportclose')
localVideo.srcObject = null
remoteVideo.srcObject = null
consumer = null
@ -21058,38 +21058,6 @@ const connectRecvTransport = async () => {
const closeCall = () => {
console.log('closeCall');
// hub.emit(
// 'ars',
// JSON.stringify({
// ars: true,
// asset_id: ASSET_ID,
// account_id: ACCOUNT_ID,
// })
// );
// hub.emit(
// 'video',
// JSON.stringify(answer)
// );
// {
// origin_asset_id: client41.AppData.getUser().asset.id,
// dest_asset_id: answerJsonResponse.origin_asset_id,
// type: 'notify-end',
// video_call_id: answerJsonResponse.video_call_id
// }
// 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: originAssetTypeName,
// origin_asset_name: originAssetName,
// video_call_id: callId,
// answer: 'accepted', // answer: 'rejected'
// };
// Emit 'notify-end' to Hub so the consumer will know to close the video
const notifyEnd = {
origin_asset_id: ASSET_ID,
@ -21103,6 +21071,8 @@ const closeCall = () => {
// Disable Close call button
const closeCallBtn = document.getElementById('btnCloseCall')
closeCallBtn.setAttribute('disabled', '')
// Reset settings and send closeTransport to video server
resetCallSettings()
}

View File

@ -64,7 +64,6 @@ if (IS_PRODUCER === true) {
if (parsedData.type === 'notify-end') {
console.log('[VIDEO] notify-end | IS_PRODUCER', IS_PRODUCER, 'callId', callId);
socket.emit('transportclose')
resetCallSettings()
}
})
@ -351,6 +350,7 @@ const createRecvTransport = async () => {
}
const resetCallSettings = () => {
socket.emit('transportclose')
localVideo.srcObject = null
remoteVideo.srcObject = null
consumer = null
@ -399,38 +399,6 @@ const connectRecvTransport = async () => {
const closeCall = () => {
console.log('closeCall');
// hub.emit(
// 'ars',
// JSON.stringify({
// ars: true,
// asset_id: ASSET_ID,
// account_id: ACCOUNT_ID,
// })
// );
// hub.emit(
// 'video',
// JSON.stringify(answer)
// );
// {
// origin_asset_id: client41.AppData.getUser().asset.id,
// dest_asset_id: answerJsonResponse.origin_asset_id,
// type: 'notify-end',
// video_call_id: answerJsonResponse.video_call_id
// }
// 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: originAssetTypeName,
// origin_asset_name: originAssetName,
// video_call_id: callId,
// answer: 'accepted', // answer: 'rejected'
// };
// Emit 'notify-end' to Hub so the consumer will know to close the video
const notifyEnd = {
origin_asset_id: ASSET_ID,
@ -444,6 +412,8 @@ const closeCall = () => {
// Disable Close call button
const closeCallBtn = document.getElementById('btnCloseCall')
closeCallBtn.setAttribute('disabled', '')
// Reset settings and send closeTransport to video server
resetCallSettings()
}