Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrusme/go-poolsuite
Poolsuite FM player as Go module
https://github.com/mrusme/go-poolsuite
poolsidefm poolsuitefm
Last synced: 26 days ago
JSON representation
Poolsuite FM player as Go module
- Host: GitHub
- URL: https://github.com/mrusme/go-poolsuite
- Owner: mrusme
- License: gpl-3.0
- Created: 2022-01-02T19:06:02.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-09T12:55:33.000Z (about 1 year ago)
- Last Synced: 2024-10-08T04:49:15.772Z (about 1 month ago)
- Topics: poolsidefm, poolsuitefm
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-poolsuite
------------[Poolsuite FM](https://poolsuite.net) (formerly
[Poolside FM](https://github.com/Poolside-FM)) player as a Go module.## Example
```go
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")
}
```