LH-265-enable-audio-in-mediasoup #16

Closed
sergiu wants to merge 120 commits from LH-265-enable-audio-in-mediasoup into master
2 changed files with 8 additions and 4 deletions
Showing only changes of commit f20e1ad260 - Show all commits

View File

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

View File

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