SdpBody

object SdpBody

Created by pedro on 21/02/17.

Functions

Link copied to clipboard
fun createAacBody(trackAudio: Int, sampleRate: Int, isStereo: Boolean): String
Link copied to clipboard
fun createAV1Body(trackVideo: Int): String
Link copied to clipboard
fun createG711Body(trackAudio: Int, sampleRate: Int, isStereo: Boolean): String
Link copied to clipboard
fun createH264Body(trackVideo: Int, sps: String, pps: String): String
Link copied to clipboard
fun createH265Body(trackVideo: Int, sps: String, pps: String, vps: String): String
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