app

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Art

func Art(ctx *context.AppContext, cp components.Track) (art string, err error)

Art fetches album art for the given track, converts it to ASCII, and return the ASCII stringified album art

func Play

func Play(ctx *context.AppContext)

Play begins streaming the provided channel after fetching its playlist If a channel is already playing, the old stream is stopped first, clearing up resources. This function is *asynchronous* and creates a single streaming resource: the audio stream held by the application context. To clean up resources created by this function, Close() the application's audio stream.

func Stop

func Stop(ctx *context.AppContext)

Stop stops playback

func TogglePause

func TogglePause(ctx *context.AppContext)

TogglePause pauses/unpauses audio when a channel is playing

func UpdateNowPlaying

func UpdateNowPlaying(ctx *context.AppContext, chn *components.ChannelItem)

UpdateNowPlaying updates the application's now playing view with the currently playing channel and album art Artist and track information are fetched separately from album art, allowing for a more responsive UI

Types

This section is empty.

Source Files

  • app.go

Jump to

Keyboard shortcuts

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