Skip to content

Commit

Permalink
refactor g711 SDP
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Dec 1, 2023
1 parent 822a443 commit 1c9ac6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rtsp/src/main/java/com/pedro/rtsp/rtsp/commands/SdpBody.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ object SdpBody {
val channel = if (isStereo) 2 else 1
val payload = RtpConstants.payloadTypeG711
return "m=audio 0 RTP/AVP ${payload}\r\n" +
"a=rtpmap:$payload pcmu/$sampleRate/$channel\r\n" +
"a=framerate:25\r\n" +
"a=rtpmap:$payload PCMU/$sampleRate/$channel\r\n" +
"a=control:streamid=$trackAudio\r\n"
}

Expand Down

0 comments on commit 1c9ac6d

Please sign in to comment.