• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: MKV files wont play in Android client app when accessed through NGINX reverse proxy

     
    • 0 Vote(s) - 0 Average

    SOLVED: MKV files wont play in Android client app when accessed through NGINX reverse proxy

    stiw47
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:Serbia
    #4
    2025-02-24, 07:31 PM
    Ok, after more trial and errors, I found it. Actually, it was not related to any of the:
    Code:
    add_header X-XSS-Protection "1; mode=block" always;
    add_header X-Frame-Options SAMEORIGIN always;
    add_header Referrer-Policy "no-referrer" always;

    And all 3 ^ are uncommented now, mkv play is working. It was related to the CSP which I skipped to post here. Yeah, I have it also, and it is (IMHO) little idiotic long, TBH I am still learning about it and trying to find some optimal way....
    Anyway, started ADB logcat to live monitor Jellyfin apk log when reproduce mkv error:
    Code:
    $ adb logcat | grep -F "`adb shell ps | grep org.jellyfin.mobile | tr -s [:space:] ' ' | cut -d' ' -f2`"

    Found this in log:
    Code:
    02-24 19:29:24.082 14351 14351 E WebView : Refused to load media from 'blob:https://jellyfin.example.com/e48a257b-0c37-4e73-951f-5d5f9abce829' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'media-src' was not explicitly set, so 'default-src' is used as a fallback.

    After several trials and errors where and what should be put, ended with this in NGINX CSP:
    Code:
    add_header Content-Security-Policy "default-src 'self'; media-src 'self' blob: https://example.com https://*.example.com; img-src.... etc. etc. insanely long....

    Will need to check/monitor now what else will be broken 😂, since I did not used media-src in CSP before 😂.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    MKV files wont play in Android client app when accessed through NGINX reverse proxy - by stiw47 - 2025-02-24, 10:32 AM
    RE: MKV files wont play in Android client app when accessed through NGINX reverse proxy - by TheDreadPirate - 2025-02-24, 01:46 PM
    RE: MKV files wont play in Android client app when accessed through NGINX reverse proxy - by stiw47 - 2025-02-24, 02:14 PM
    RE: MKV files wont play in Android client app when accessed through NGINX reverse proxy - by stiw47 - 2025-02-24, 07:31 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode