sdp相关的代码移动到主目录

This commit is contained in:
ziyue
2021-03-30 10:59:15 +08:00
parent a3d0d3b7ad
commit a7a94f0885
10 changed files with 93 additions and 46 deletions

View File

@@ -31,7 +31,7 @@ public:
if (bitrate) {
_printer << "b=AS:" << bitrate << "\r\n";
}
_printer << "a=rtpmap:" << payload_type << " opus/" << sample_rate << "/" << channels << "\r\n";
_printer << "a=rtpmap:" << payload_type << " " << getCodecName() << "/" << sample_rate << "/" << channels << "\r\n";
_printer << "a=control:trackID=" << (int)TrackAudio << "\r\n";
}