Fix #628: Add setting to transcode stream

This commit is contained in:
Drew Weymouth
2025-05-31 10:12:57 -07:00
parent 0fd8b4621b
commit 265e4f961f
9 changed files with 74 additions and 15 deletions
+6 -1
View File
@@ -184,6 +184,11 @@ type LoginResponse struct {
IsAuthError bool
}
type TranscodeSettings struct {
Codec string
BitRateKBPS int
}
type Server interface {
Login(username, password string) LoginResponse
MediaProvider() MediaProvider
@@ -234,7 +239,7 @@ type MediaProvider interface {
GetFavorites() (Favorites, error)
GetStreamURL(trackID string, forceRaw bool) (string, error)
GetStreamURL(trackID string, transcodeSettings *TranscodeSettings, forceRaw bool) (string, error)
GetTopTracks(artist Artist, count int) ([]*Track, error)