mediainfo

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Type Type

	// If Type is TypeVideo or TypeAudio, look at these fields:
	Duration *time.Duration
	Year     *int

	// If Type is TypeAudio, look at this field:
	Author string

	// If Type is TypeVideo or TypePicture, look at this field:
	Camera string
}

func MediaInfo

func MediaInfo(path string) (Info, error)

type Type

type Type int
const (
	TypeOther   Type = 0
	TypeVideo   Type = 1
	TypeAudio   Type = 2
	TypePicture Type = 3
)

Jump to

Keyboard shortcuts

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