getRelativeDirection
function getRelativeDirection(remoteDirection): MediaDirection;
Get the relative direction so you can get the correct direction, e.g.
"sendonly" <--> "recvonly"
From https://www.rfc-editor.org/rfc/rfc3264.html#section-6.1 > If a stream is offered as sendonly, the corresponding stream MUST be > marked as recvonly or inactive in the answer. If a media stream is > listed as recvonly in the offer, the answer MUST be marked as > sendonly or inactive in the answer. If an offered media stream is > listed as sendrecv (or if there is no direction attribute at the > media or session level, in which case the stream is sendrecv by > default), the corresponding stream in the answer MAY be marked as > sendonly, recvonly, sendrecv, or inactive. If an offered media > stream is listed as inactive, it MUST be marked as inactive in the > answer.
Parameters
| Parameter | Type |
|---|---|
remoteDirection | undefined | MediaDirection |