[flutter] Fixed bug for publish.
@@ -125,9 +125,8 @@ class Client extends EventEmitter {
'screen': screen,
'codec': codec
};
- var result = await this
- ._protoo
- .send('publish', {'jsep': offer.toMap(), 'options': options});
+ var result = await this._protoo.send('publish',
+ {'rid': this._rid, 'jsep': offer.toMap(), 'options': options});
await pc.setRemoteDescription(RTCSessionDescription(
result['jsep']['sdp'], result['jsep']['type']));
logger.debug('publish success => ' + _encoder.convert(result));
