dlna

package
v0.0.0-...-9f5fb93 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

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