mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-10 02:50:17 +08:00
Refractor, unify some APIs to be more DRY
This commit is contained in:
@@ -5,7 +5,8 @@ import (
|
||||
|
||||
"github.com/pion/mediadevices/pkg/io/audio"
|
||||
"github.com/pion/mediadevices/pkg/io/video"
|
||||
"github.com/pion/mediadevices/pkg/prop"
|
||||
)
|
||||
|
||||
type VideoEncoderBuilder func(r video.Reader, prop video.AdvancedProperty) (io.ReadCloser, error)
|
||||
type AudioEncoderBuilder func(r audio.Reader, inProp, outProp audio.AdvancedProperty) (io.ReadCloser, error)
|
||||
type VideoEncoderBuilder func(r video.Reader, p prop.Video) (io.ReadCloser, error)
|
||||
type AudioEncoderBuilder func(r audio.Reader, p prop.Audio) (io.ReadCloser, error)
|
||||
|
Reference in New Issue
Block a user