mrusme / go-poolsuite

Poolsuite FM player as Go module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-poolsuite

Poolsuite FM (formerly Poolside FM) player as a Go module.

Example

func main() {
	psfm := poolsuite.NewPoolsuite()
	psfm.Load()
	track := psfm.GetRandomTrackFromPlaylist(psfm.GetRandomPlaylist())
	psfm.Play(track, nil)
	fmt.Println("Waiting ..")
	time.Sleep(8 * time.Second)
	fmt.Println("Stopping ...")
	psfm.PauseResume()
	fmt.Println("Stopped, waiting ...")
	time.Sleep(3 * time.Second)
	track = psfm.GetRandomTrackFromPlaylist(psfm.GetRandomPlaylist())
	psfm.Play(track, nil)
	fmt.Println("Waiting ..")
	time.Sleep(5 * time.Second)
	fmt.Println("Stopping ...")
	psfm.PauseResume()
	fmt.Println("Stopped, waiting ...")
	time.Sleep(3 * time.Second)
	fmt.Println("Done")
}

About

Poolsuite FM player as Go module

License:GNU General Public License v3.0


Languages

Language:Go 100.0%