tsquillario/Jamstash

jplayer won't play FLAC

Opened this issue · 2 comments

I didn't try playing flac files before the fix in #260, but it definitely doesn't work now. With debug turned on, using the player on jamstash.com (eg not a local install), and with Navidrome as the server, here's what I see in the Chrome console:

jPlayer error:  
{type: "e_no_support", context: "{supplied:'mp3, oga, m4a, flac'}", message: "It is not possible to play any media format provid…dia() on this browser using your current options.", hint: "Video or audio formats defined in the supplied option are missing."}
context: "{supplied:'mp3, oga, m4a, flac'}"
hint: "Video or audio formats defined in the supplied option are missing."
message: "It is not possible to play any media format provided in setMedia() on this browser using your current options."
type: "e_no_support"

And here's a sample of the payload returned by Navidrome. I don't know if it should hint to other formats or if the problem is entirely on the Jamstash side.

{
  "subsonic-response": {
    "status": "ok",
    "version": "1.16.1",
    "type": "navidrome",
    "serverVersion": "0.38.0 (53b2cdd)",
    "searchResult2": {
      "album": [
        {
          "id": "8f9c8e877bd9f44a5ecc0e168a848f47",
          "parent": "56ddda9ef979d6772c19a2a837db6692",
          "isDir": true,
          "title": "ROBOT HEART",
          "name": "ROBOT HEART",
          "album": "ROBOT HEART",
          "artist": "Kawehi",
          "year": 2014,
          "coverArt": "02e48284f447c71b67d0c564c8b40aa4",
          "duration": 1217,
          "created": "2020-11-23T16:27:34.482087576Z",
          "artistId": "56ddda9ef979d6772c19a2a837db6692",
          "songCount": 7,
          "isVideo": false
        }
      ],
      "song": [
        {
          "id": "645e5374ef01212cd0214c5bdd8b128b",
          "parent": "8f9c8e877bd9f44a5ecc0e168a848f47",
          "isDir": false,
          "title": "0s + 1s",
          "album": "ROBOT HEART",
          "artist": "Kawehi",
          "track": 5,
          "year": 2014,
          "coverArt": "645e5374ef01212cd0214c5bdd8b128b",
          "size": 35443573,
          "contentType": "audio/flac",
          "suffix": "flac",
          "duration": 273,
          "bitRate": 1033,
          "path": "Kawehi/ROBOT HEART/0s + 1s.flac",
          "created": "2020-07-23T00:31:16.459999999Z",
          "albumId": "8f9c8e877bd9f44a5ecc0e168a848f47",
          "artistId": "56ddda9ef979d6772c19a2a837db6692",
          "type": "music",
          "isVideo": false
        }
      ]
    }
  }
}

Because jplayer is failing, it doesn't ever request the /stream endpoint. So the above is the last request to Navidrome.

If it helps, it's playable directly in Navidrome's web client. So the flac->mp3 transcoding works.

versions:

  • navidrome 0.38.0
  • jamstash 4.71.1
  • chrome 86.x on Ubuntu

FWIW, all the codecs in this test play properly except for CAF.

pR0Ps commented

Related: #225