mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
support G711 multiple channels and custom sample rates (#497)
This commit is contained in:
@@ -38,8 +38,13 @@ func main() {
|
||||
// create a description that contains a G711 format
|
||||
desc := &description.Session{
|
||||
Medias: []*description.Media{{
|
||||
Type: description.MediaTypeVideo,
|
||||
Formats: []format.Format{&format.G711{}},
|
||||
Type: description.MediaTypeVideo,
|
||||
Formats: []format.Format{&format.G711{
|
||||
PayloadTyp: 8,
|
||||
MULaw: false,
|
||||
SampleRate: 8000,
|
||||
ChannelCount: 1,
|
||||
}},
|
||||
}},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user