mirror of
https://github.com/aler9/gortsplib
synced 2025-10-26 00:30:33 +08:00
add VP8.CreateEncoder(), VP9.CreateEncoder()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user