Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,029

    content-type of images from cache (proxy)

    PNG icons were not displayed properly on AppleTV using my AirPlay Bridge plugin.

    AppleTV does not grab the image from an URL, but requires the binary data to be passed directly in a RTSP connection. My plugin is getting the icon from LMS through an HTTP request and then forwards the data. I thought AppleTV was only accepting JPEG, so I did a png-to-jpeg transcoder that was supposed to be called when the content-type sent by LMS was image/png. But the transcoder was never called and I realised the problem is different.

    LMS seems to always force "Content-Type: image/jpeg" when sending icons from proxy/cache, although the image is PNG, hence the AppleTV was confused. To make sure, I forced Content-type to image/png when the (cached) url extension is .png and the icon was immediately displayed on the AppleTV.

    I've not identified what part of LMS code is the cause, but it really seems to be an issue
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,681

    content-type of images from cache (proxy)

    Could you enable debug logging for artwork?

    I'm out for a while, but can look into this in August. This certainly should work as expected.

    > Am 16.07.2017 um 07:48 schrieb philippe_44 <philippe_44.81pnxb (AT) no-mx (DOT) forums.slimdevices.com>:
    >
    >
    > PNG icons were not displayed properly on AppleTV using my AirPlay Bridge
    > plugin.
    >
    > AppleTV does not grab the image from an URL, but requires the binary
    > data to be passed directly in a RTSP connection. My plugin is getting
    > the icon from LMS through an HTTP request and then forwards the data. I
    > thought AppleTV was only accepting JPEG, so I did a png-to-jpeg
    > transcoder that was supposed to be called when the content-type sent by
    > LMS was image/png. But the transcoder was never called and I realised
    > the problem is different.
    >
    > LMS seems to always force "Content-Type: image/jpeg" when sending icons
    > from proxy/cache, although the image is PNG, hence the AppleTV was
    > confused. To make sure, I forced Content-type to image/png when the
    > (cached) url extension is .png and the icon was immediately displayed on
    > the AppleTV.
    >
    > I've not identified what part of LMS code is the cause, but it really
    > seems to be an issue
    >
    >
    >
    > LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos
    > PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000,
    > ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi
    > B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010,
    > AppleTV 4, Airport Express
    > ------------------------------------------------------------------------
    > philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
    > View this thread: http://forums.slimdevices.com/showthread.php?t=107675
    >
    >

  3. #3
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,029
    Quote Originally Posted by mherger View Post
    Could you enable debug logging for artwork?

    I'm out for a while, but can look into this in August. This certainly should work as expected.
    I've added a server log and an extra of what my plugin gets. As said in the file, content-type is image/jpeg when I "GET" this url.

    There is no rush at all on my side, I've created a workaround that works just fine

    Enjoy your vacation !
    Attached Files Attached Files
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •