I'm not sure what to say. Unless this is a recent change in my experience it does not work as intended. I spent a lot of time playing with the various transcoding settings and per user settings and direct path access or the regular way of accessing files.
I'm happy it worked for you. I have specific content jellyfin doesn't work with where Kodi is fine and I am just sharing my experience with this software package.