detector

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector interface {
	Detect(resource entity.Resource) (audioCodec string, videoCodec string, err error)
}

type ResourceCodecDetector

type ResourceCodecDetector struct {
	// contains filtered or unexported fields
}

func NewResourceCodecInfo

func NewResourceCodecInfo(ctx context.Context, logger logger.Logger) *ResourceCodecDetector

func (*ResourceCodecDetector) Detect

func (d *ResourceCodecDetector) Detect(
	resource entity.Resource,
) (
	audioCodec string,
	videoCodec string,
	e error,
)

Detect will determine video and audio stream codecs of target resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL