dlna

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedContentTypes = []string{"video/mp2t", media.MP4}

SupportedContentTypes lists the content types that DLNA renderers support.

Functions

func ContentFeatures

func ContentFeatures(contentType string) string

ContentFeatures returns a DLNA content features string for use in HTTP headers and DIDL metadata.

func StreamHeaders

func StreamHeaders(contentType string) map[string]string

StreamHeaders returns HTTP headers a DLNA renderer expects on a stream response.

Types

type Device

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

Device implements device.Device for UPnP/DLNA media renderers.

func NewDevice

func NewDevice(info device.Info) *Device

NewDevice creates a Device from discovery info.

func (*Device) Close

func (d *Device) Close() error

func (*Device) Connect

func (d *Device) Connect() error

func (*Device) Play

func (d *Device) Play(ctx context.Context, streamURL *url.URL, contentType string) error

func (*Device) SupportedContentTypes

func (d *Device) SupportedContentTypes() []string

Jump to

Keyboard shortcuts

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