Hi all, I want to modify(set) the rtp port in the SDP:
list<SdpContents::Session::Medium>::const_iterator mediaiter = sdp->session().media().begin();
for (; mediaiter!=sdp->session().media().end(); ++mediaiter)
{
if (mediaiter->name() == "audio")
{
mediaiter->port() = localAudioPort;
}
}
The error is: error C2106: '=' : left operand must be l-value
I have read the testSdp.cxx file, found below code:
assert(sdp.session().media().front().port() == 12000);
It seems same to my code, why my code got the error ?
Thanks