Add codec property

Add codec property, which stores general encoding parameters,
to MediaTrackConstraints.
This commit is contained in:
Atsushi Watanabe
2020-02-10 23:15:29 +09:00
committed by Lukas Herman
parent 1e868fc3e3
commit 00bcadc238
8 changed files with 48 additions and 15 deletions

View File

@@ -8,5 +8,5 @@ import (
"github.com/pion/mediadevices/pkg/prop"
)
type VideoEncoderBuilder func(r video.Reader, p prop.Video) (io.ReadCloser, error)
type AudioEncoderBuilder func(r audio.Reader, p prop.Audio) (io.ReadCloser, error)
type VideoEncoderBuilder func(r video.Reader, p prop.Media) (io.ReadCloser, error)
type AudioEncoderBuilder func(r audio.Reader, p prop.Media) (io.ReadCloser, error)