Update build

This commit is contained in:
Sergiu Toma 2022-11-22 20:04:43 +02:00
parent 27151a26d1
commit f20e1ad260
2 changed files with 8 additions and 4 deletions

View File

@ -20672,7 +20672,8 @@ const connectSendTransport = async () => {
// https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce
// this action will trigger the 'connect' and 'produce' events above // this action will trigger the 'connect' and 'produce' events above
producerVideo = await producerTransport.produce(videoParams) producerVideo = await producerTransport.produce(videoParams)
console.log('producerVideo', producerVideo);
producerVideo.on('trackended', () => { producerVideo.on('trackended', () => {
console.log('track ended') console.log('track ended')
// close video track // close video track
@ -20683,7 +20684,8 @@ const connectSendTransport = async () => {
// close video track // close video track
}) })
// producerAudio = await producerTransport.produce(audioParams) producerAudio = await producerTransport.produce(audioParams)
console.log('producerAudio', producerAudio);
// producerAudio.on('trackended', () => { // producerAudio.on('trackended', () => {
// console.log('track ended') // console.log('track ended')

View File

@ -314,7 +314,8 @@ const connectSendTransport = async () => {
// https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce
// this action will trigger the 'connect' and 'produce' events above // this action will trigger the 'connect' and 'produce' events above
producerVideo = await producerTransport.produce(videoParams) producerVideo = await producerTransport.produce(videoParams)
console.log('producerVideo', producerVideo);
producerVideo.on('trackended', () => { producerVideo.on('trackended', () => {
console.log('track ended') console.log('track ended')
// close video track // close video track
@ -325,7 +326,8 @@ const connectSendTransport = async () => {
// close video track // close video track
}) })
// producerAudio = await producerTransport.produce(audioParams) producerAudio = await producerTransport.produce(audioParams)
console.log('producerAudio', producerAudio);
// producerAudio.on('trackended', () => { // producerAudio.on('trackended', () => {
// console.log('track ended') // console.log('track ended')