Cached file still streams from remote

Issue description:

Hello!
I tried to save a song to the permanent cache, and despite it being downloaded locally, when I play it I can see it being streamed from the remote server. In Plex dashboard I can see the song being played by my device, even if the device should be able to play it from cache (and indeed, if I turn on airplane mode, the song plays just fine).

I sent the debug logs a few minutes ago. If you need anything else just let me know.
Thank you very much for your support.

Logs:

Upload description: Luke94 - Cached song and remote stream

Additional information:

 

 

Reproduction steps:

 
From a song > save to permanent cache
I expect, when I play it, to be played from local cache, but it seems it’s still streaming from the remote server
 

Media provider:

Plex

Screenshots:

 

    

There is a Setting → Offline Cache and Download → Media → Always prefer server version, are you sure that it is not turned on?

I chose to save cached songs in original quality so the “prefer server version” option is not availabile

You are not playing anything in the logs, you are supposed to reproduce the issue :wink:

But the fact that it’s visible in the dashboard is normal even when you play cached files, people want that for stats from other tools. This does not mean that the file is played from the server at all.

Oh wow, I was sure to have started logs before playing a song and stopping it after, sorry :sweat_smile:

Nice point, I hadn’t thought about that. I assumed that seeing the status in the Plex dashboard meant the song was being streamed from Plex.

I checked my phone’s traffic while playing both a cached and a non-cached song, and sure enough, I noticed a request to https://[plex_ip]/music/:/transcode when playing a non-cached song and only /timeline and /metadata requests when playing cached songs.
That clears up my doubt, thanks for the heads up! :slight_smile: