I'm in a node app.
pipeline = await this.kurentoClient.create('MediaPipeline')
webRtcEndpoint = await pipeline.create('WebRtcEndpoint')
await webRtcEndpoint.connect(webRtcEndpoint)
let offer = await webRtcEndpoint.generateOffer()
await webRtcEndpoint.gatherCandidates()
the subscriber endpoint is created from the publisher's pipeline (I'm not creating a new pipeline, but storing the publisher's pipeline in a session object) and connect it to the publisher's WebRTCEndpoint
webRtcEndpoint = await publisher.pipeline.create('WebRtcEndpoint')
await publisher.webRtcEndpoint.connect(webRtcEndpoint)
let offer = await webRtcEndpoint.generateOffer()
await webRtcEndpoint.gatherCandidates()
Both offers contain:
a=sendrecv
I was hoping to be able to produce a "sendonly" publisher OFFER and a "recvonly" subscriber OFFER subsequently by changing the publisher's generateOffer to
let offer = await webRtcEndpoint.generateOffer({ offerToReceiveAudio: false, offerToReceiveVideo: false })
which IMHO is basically completely OK, since the publisher doesn't want to receive.
But the publisher's OFFER still comes "sendrecv", just the subscriber is now neither producing an OFFER nor ICE candidates anymore...
Weird?