LINXD-2180: Added recordings
This commit is contained in:
@ -20808,7 +20808,7 @@ const getLocalStream = () => {
|
||||
})
|
||||
.then(streamSuccess)
|
||||
.catch(error => {
|
||||
console.log(error.message)
|
||||
console.log('getLocalStream', error)
|
||||
})
|
||||
}
|
||||
|
||||
@ -20903,7 +20903,7 @@ const createSendTransport = () => {
|
||||
})
|
||||
|
||||
producerTransport.on('produce', async (parameters, callback, errback) => {
|
||||
console.log(parameters)
|
||||
console.log('produce', parameters)
|
||||
|
||||
try {
|
||||
// tell the server to create a Producer
|
||||
@ -20913,7 +20913,7 @@ const createSendTransport = () => {
|
||||
await socket.emit('transport-produce', {
|
||||
kind: parameters.kind,
|
||||
rtpParameters: parameters.rtpParameters,
|
||||
appData: parameters.appData,
|
||||
callId: callId
|
||||
}, ({ id }) => {
|
||||
// Tell the transport that parameters were transmitted and provide it with the
|
||||
// server side producer's id.
|
||||
@ -21009,7 +21009,6 @@ const createRecvTransport = async () => {
|
||||
}
|
||||
|
||||
const resetCallSettings = () => {
|
||||
socket.emit('transportclose', { callId })
|
||||
localVideo.srcObject = null
|
||||
remoteVideo.srcObject = null
|
||||
consumer = null
|
||||
@ -21057,12 +21056,12 @@ const connectRecvTransport = async () => {
|
||||
|
||||
const closeCall = () => {
|
||||
console.log('closeCall');
|
||||
|
||||
|
||||
// Emit 'notify-end' to Hub so the consumer will know to close the video
|
||||
const notifyEnd = {
|
||||
origin_asset_id: ASSET_ID,
|
||||
dest_asset_id: originAssetId || parseInt(urlParams.get('dest_asset_id')),
|
||||
type: 'notify-end',
|
||||
origin_asset_id: ASSET_ID,
|
||||
dest_asset_id: originAssetId || parseInt(urlParams.get('dest_asset_id')),
|
||||
type: 'notify-end',
|
||||
video_call_id: callId
|
||||
}
|
||||
console.log('notifyEnd', notifyEnd)
|
||||
@ -21072,7 +21071,7 @@ const closeCall = () => {
|
||||
const closeCallBtn = document.getElementById('btnCloseCall')
|
||||
closeCallBtn.setAttribute('disabled', '')
|
||||
|
||||
// Reset settings and send closeTransport to video server
|
||||
// Reset settings
|
||||
resetCallSettings()
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
hubAddress: 'https://hub.dev.linx.safemobile.com/',
|
||||
mediasoupAddress: 'https://video.safemobile.org/mediasoup',
|
||||
// mediasoupAddress: 'http://localhost:3000/mediasoup',
|
||||
// mediasoupAddress: 'https://video.safemobile.org/mediasoup',
|
||||
mediasoupAddress: 'http://localhost:3000/mediasoup',
|
||||
}
|
@ -149,7 +149,7 @@ const getLocalStream = () => {
|
||||
})
|
||||
.then(streamSuccess)
|
||||
.catch(error => {
|
||||
console.log(error.message)
|
||||
console.log('getLocalStream', error)
|
||||
})
|
||||
}
|
||||
|
||||
@ -244,7 +244,7 @@ const createSendTransport = () => {
|
||||
})
|
||||
|
||||
producerTransport.on('produce', async (parameters, callback, errback) => {
|
||||
console.log(parameters)
|
||||
console.log('produce', parameters)
|
||||
|
||||
try {
|
||||
// tell the server to create a Producer
|
||||
@ -254,7 +254,7 @@ const createSendTransport = () => {
|
||||
await socket.emit('transport-produce', {
|
||||
kind: parameters.kind,
|
||||
rtpParameters: parameters.rtpParameters,
|
||||
appData: parameters.appData,
|
||||
callId: callId
|
||||
}, ({ id }) => {
|
||||
// Tell the transport that parameters were transmitted and provide it with the
|
||||
// server side producer's id.
|
||||
|
Reference in New Issue
Block a user