diff --git a/README.md b/README.md index e9dec7b2e28..19c515e6f5f 100644 --- a/README.md +++ b/README.md @@ -254,6 +254,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu * [Bo Shi](https://github.com/bshimc) * [Suzuki Takeo](https://github.com/BambooTuna) * [baiyufei](https://github.com/baiyufei) +* [pascal-ace](https://github.com/pascal-ace) ### License MIT License - see [LICENSE](LICENSE) for full text diff --git a/mediaengine.go b/mediaengine.go index 59d771c8be1..a43db508785 100644 --- a/mediaengine.go +++ b/mediaengine.go @@ -494,17 +494,17 @@ func (m *MediaEngine) getRTPParametersByPayloadType(payloadType PayloadType) (RT func payloaderForCodec(codec RTPCodecCapability) (rtp.Payloader, error) { switch strings.ToLower(codec.MimeType) { - case MimeTypeH264: + case strings.ToLower(MimeTypeH264): return &codecs.H264Payloader{}, nil - case MimeTypeOpus: + case strings.ToLower(MimeTypeOpus): return &codecs.OpusPayloader{}, nil - case MimeTypeVP8: + case strings.ToLower(MimeTypeVP8): return &codecs.VP8Payloader{}, nil - case MimeTypeVP9: + case strings.ToLower(MimeTypeVP9): return &codecs.VP9Payloader{}, nil - case MimeTypeG722: + case strings.ToLower(MimeTypeG722): return &codecs.G722Payloader{}, nil - case MimeTypePCMU, MimeTypePCMA: + case strings.ToLower(MimeTypePCMU), strings.ToLower(MimeTypePCMA): return &codecs.G711Payloader{}, nil default: return nil, ErrNoPayloaderForCodec