upnpav

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: 2 Imported by: 10 modules, 7 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 (
	// NoSuchObjectErrorCode : The specified ObjectID is invalid.
	NoSuchObjectErrorCode = 701
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Object
	XMLName    xml.Name `xml:"container"`
	ChildCount int      `xml:"childCount,attr"`
}

Container description

type Item

type Item struct {
	Object
	XMLName  xml.Name `xml:"item"`
	Res      []Resource
	InnerXML string `xml:",innerxml"`
}

Item description

type Object

type Object struct {
	ID          string    `xml:"id,attr"`
	ParentID    string    `xml:"parentID,attr"`
	Restricted  int       `xml:"restricted,attr"` // indicates whether the object is modifiable
	Title       string    `xml:"dc:title"`
	Class       string    `xml:"upnp:class"`
	Icon        string    `xml:"upnp:icon,omitempty"`
	Date        Timestamp `xml:"dc:date"`
	Artist      string    `xml:"upnp:artist,omitempty"`
	Album       string    `xml:"upnp:album,omitempty"`
	Genre       string    `xml:"upnp:genre,omitempty"`
	AlbumArtURI string    `xml:"upnp:albumArtURI,omitempty"`
	Searchable  int       `xml:"searchable,attr"`
	SearchXML   string    `xml:",innerxml"`
}

Object description

type Resource

type Resource struct {
	XMLName      xml.Name `xml:"res"`
	ProtocolInfo string   `xml:"protocolInfo,attr"`
	URL          string   `xml:",chardata"`
	Size         uint64   `xml:"size,attr,omitempty"`
	Bitrate      uint     `xml:"bitrate,attr,omitempty"`
	Duration     string   `xml:"duration,attr,omitempty"`
	Resolution   string   `xml:"resolution,attr,omitempty"`
}

Resource description

type Timestamp added in v1.4.0

type Timestamp struct {
	time.Time
}

Timestamp wraps time.Time for formatting purposes

func (Timestamp) MarshalXML added in v1.4.0

func (t Timestamp) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML formats the Timestamp per DIDL-Lite spec

Jump to

Keyboard shortcuts

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