# SdpBody

object SdpBody

Created by pedro on 21/02/17.

## Functions

createAacBody
Link copied to clipboard
fun createAacBody(trackAudio: Int, sampleRate: Int, isStereo: Boolean): String
createAV1Body
Link copied to clipboard
fun createAV1Body(trackVideo: Int): String
createG711Body
Link copied to clipboard
fun createG711Body(trackAudio: Int, sampleRate: Int, isStereo: Boolean): String
createH264Body
Link copied to clipboard
fun createH264Body(trackVideo: Int, sps: String, pps: String): String
createH265Body
Link copied to clipboard
fun createH265Body(trackVideo: Int, sps: String, pps: String, vps: String): String
createOpusBody
Link copied to clipboard
fun createOpusBody(trackAudio: Int): String

Opus only support sample rate 48khz and stereo channel but Android encoder accept others values. The encoder internally transform the sample rate to 48khz and channels to stereo