Disable audio in WebRTC to RTMP

Radu

New Member
I'm trying to disable audio when publishing:

constraints = {
audio: false,
video: {
width: 320,
height: 240
}
}

session.createStream({
name: streamName,
display: @localVideo,
cacheLocalResources: true,
constraints: constraints,
receiveVideo: false,
receiveAudio: false,
rtmpUrl: app.params.rtmpUrl
}). //...

However the console says:
upload_2017-12-8_10-58-6.png
 
Top