Sent as a response to offerData media event during renegotiation Maps contain only information about current peer's sendonly tracks. The "mid" is an identifier used to associate an RTP packet with an MLine from the SDP offer/answer.

interface MediaEvent_SdpOffer {
    midToTrackId: { [key: string]: string };
    sdp: string;
    trackIdToBitrates: { [key: string]: MediaEvent_TrackBitrates };
    trackIdToMetadataJson: { [key: string]: string };
}

Properties

midToTrackId: { [key: string]: string }
sdp: string

The value of the sessionDescription.sdp

trackIdToBitrates: { [key: string]: MediaEvent_TrackBitrates }

Maps track_id to its bitrate. The track_id in the TrackBitrates message is ignored (we use the map key), so it can be ommited.

trackIdToMetadataJson: { [key: string]: string }