add VP8.CreateEncoder(), VP9.CreateEncoder()

This commit is contained in:
aler9
2022-12-14 22:06:11 +01:00
parent d43cb0455e
commit e1c07a1c8d
2 changed files with 18 additions and 0 deletions

View File

@@ -121,3 +121,12 @@ func (t *VP9) CreateDecoder() *rtpvp9.Decoder {
d.Init()
return d
}
// CreateEncoder creates an encoder able to encode the content of the format.
func (t *VP9) CreateEncoder() *rtpvp9.Encoder {
e := &rtpvp9.Encoder{
PayloadType: t.PayloadTyp,
}
e.Init()
return e
}