Page 1 of 1

Pre-fetch

Posted: November 26th, 2019, 7:19 pm
by kdubious
I just made a post about swapping the path of files in the Queue.

Another potential solution would be this:
  • The new track is about to play
    MPD requests the stream from the URL
    I intercept this request, inject my authentication
    I get the response from the auth request, and pass it to a new request for a valid URL
    I return the stream from that new valid URL to MPD
This solution would actually be several times more useful than having to swap out the paths in the queue all the time.

Is there some way to hook the Curl request starting?