Implement client-preferred bitrate support in StreamTrack()

This commit is contained in:
Serge Tkatchouk
2020-03-02 17:35:59 +08:00
parent a19ba1cf8b
commit b896574346
2 changed files with 28 additions and 18 deletions

No files matched your search

+1 -1
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