Implement client-preferred bitrate support in StreamTrack()

This commit is contained in:
Serge Tkatchouk
2020-03-12 13:27:52 +00:00
committed by sentriz
parent ca0ec6da15
commit db7c965a65
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