omnicast

package module
v0.0.0-...-a1b9eeb Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 2 Imported by: 0

README

Omnicast

Omnicast provides interoperability with DLNA/UPnP control points for Google Cast devices, i.e. Chromecasts.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaInfoReporter

type MediaInfoReporter interface {
	MediaURL() *url.URL
	MediaMetadata() MediaMetadata
	MediaDuration() time.Duration
}

MediaInfoReporter provides information for the current media.

type MediaLoader

type MediaLoader interface {
	Load(media *url.URL, metadata MediaMetadata) error
}

MediaLoader loads the media for playback.

type MediaMetadata

type MediaMetadata interface {
	Title() string
	Subtitle() string
	ImageURL() *url.URL
}

MediaMetadata describes a media artefact.

type MediaPlayer

MediaPlayer is a generic media player.

type PlaybackController

type PlaybackController interface {
	Play()
	Pause()
	Stop()
	SeekTo(pos time.Duration)
}

PlaybackController provides methods for controlling media playback.

type PlaybackStateReporter

type PlaybackStateReporter interface {
	IsIdle() bool
	IsPlaying() bool
	IsPaused() bool
	IsBuffering() bool
	PlaybackPosition() time.Duration
	PlaybackRate() float32
}

PlaybackStateReporter retrieves media playback state.

type VolumeController

type VolumeController interface {
	SetVolumeLevel(level float64)
	Mute()
	Unmute()
}

VolumeController provides methods for adjusting volume settings.

type VolumeReporter

type VolumeReporter interface {
	VolumeLevel() float64
	IsMuted() bool
}

VolumeReporter retrieves volume settings of audio output.

Directories

Path Synopsis
cmd
internal/castv2
Package castv2 provides a low-level implementation of Google Cast V2 protocol.
Package castv2 provides a low-level implementation of Google Cast V2 protocol.
av

Jump to

Keyboard shortcuts

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