helpers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToDbus

func ConnectToDbus() (*dbus.Conn, error)

ConnectToDbus establishes a new connection to the omxplayer over dbus

func GetPlaybackStatus

func GetPlaybackStatus(conn *dbus.Conn) (string, error)

GetPlaybackStatus returns the status of the player

func GetStream

func GetStream(conn *dbus.Conn) (string, error)

GetStream returns the url of the stream currently playing

func Mute

func Mute(conn *dbus.Conn) error

Mute mutes the current player output

func StartOMX

func StartOMX(streamURL string, args []string) error

StartOMX starts a new instance of the omxplayer

func StopStream

func StopStream(conn *dbus.Conn) error

StopStream quits the omxplayer

func SwitchStream

func SwitchStream(conn *dbus.Conn, streamURL string) error

SwitchStream switches player output to a new stream

func Unmute

func Unmute(conn *dbus.Conn) error

Unmute unmutes the current player output

func VolumeControl

func VolumeControl(conn *dbus.Conn, volume ...float64) (currVolume float64, err error)

VolumeControl always returns the current volume and optionally can change the volume

Types

This section is empty.

Jump to

Keyboard shortcuts

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