Implement client-preferred bitrate support in StreamTrack()

This commit is contained in:
Serge Tkatchouk
2020-02-21 15:31:42 +08:00
parent a19ba1cf8b
commit b896574346
2 changed files with 28 additions and 18 deletions

View File

@@ -73,7 +73,7 @@ func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.R
track.Album.RightPath,
track.Filename,
)
StreamTrack(w, r, absPath, client, c.CachePath)
StreamTrack(w, r, absPath, client, bitrate, c.CachePath)
//
// after we've served the file, mark the album as played