fb2k

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: BSL-1.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// SongQueue song queue channel
	SongQueue = make(chan int, 100)
)

Functions

func New

func New(client *tdlib.Client)

New create music player event monitor

func Pause

func Pause()

Pause pause current song

func Play

func Play()

Play start play a song

func PlayNext

func PlayNext()

PlayNext play next song

func PlayRandom

func PlayRandom()

PlayRandom play random song

func PlaySelected

func PlaySelected(selectedIdx int)

PlaySelected play selected song

func PushQueue

func PushQueue(selectedIdx int)

PushQueue push selected song to queue channel

func SetKillSwitch

func SetKillSwitch()

SetKillSwitch set kill switch to kill goroutine

func Stop

func Stop()

Stop stop music player

Types

This section is empty.

Jump to

Keyboard shortcuts

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