Archived
2
0

back to recvonly

This commit is contained in:
Marcel Battista
2021-02-14 16:49:08 +00:00
parent a362df4976
commit 82cc13b680
3 changed files with 5 additions and 5 deletions

View File

@ -211,8 +211,8 @@ export abstract class BaseClient extends EventEmitter<BaseEvents> {
}
this._peer.ontrack = this.onTrack.bind(this)
this._peer.addTransceiver('audio', { direction: 'sendrecv' })
this._peer.addTransceiver('video', { direction: 'sendrecv' })
this._peer.addTransceiver('audio', { direction: 'recvonly' })
this._peer.addTransceiver('video', { direction: 'recvonly' })
this._channel = this._peer.createDataChannel('data')
this._channel.onerror = this.onError.bind(this)