dlna

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: BSD-3-Clause Imports: 3 Imported by: 27 modules, 23 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TimeSeekRangeDomain   = "TimeSeekRange.dlna.org"
	ContentFeaturesDomain = "contentFeatures.dlna.org"
	TransferModeDomain    = "transferMode.dlna.org"
)

Variables

This section is empty.

Functions

func BinaryInt

func BinaryInt(b bool) uint

func FormatNPTTime

func FormatNPTTime(npt time.Duration) string

func ParseNPTTime

func ParseNPTTime(s string) (time.Duration, error)

Types

type ContentFeatures

type ContentFeatures struct {
	ProfileName     string
	SupportTimeSeek bool
	SupportRange    bool
	// Play speeds, DLNA.ORG_PS would go here if supported.
	Transcoded bool
	// DLNA.ORG_FLAGS go here if you need to tweak.
	Flags string
}

func (ContentFeatures) String

func (cf ContentFeatures) String() (ret string)

flags are in hex. trailing 24 zeroes, 26 are after the space "DLNA.ORG_OP=" time-seek-range-supp bytes-range-header-supp

type NPTRange

type NPTRange struct {
	Start, End time.Duration
}

func ParseNPTRange

func ParseNPTRange(s string) (ret NPTRange, err error)

func (NPTRange) String

func (me NPTRange) String() (ret string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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