From 040e760789fb9ae989ebfdaaf501a1bc339b9c00 Mon Sep 17 00:00:00 2001 From: Ace Jones Date: Wed, 30 Dec 2009 18:49:52 +0100 Subject: [PATCH] Add support for Remote, the iPhone remote control for iTunes Remote needs the same DAAP query quirk as iTunes and supports the same codecs. --- src/httpd.c | 1 + src/transcode.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/httpd.c b/src/httpd.c index a976ba3b..949745d3 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -869,6 +869,7 @@ httpd_fixup_uri(struct evhttp_request *req) return strdup(uri); if ((strncmp(ua, "iTunes", strlen("iTunes")) != 0) + && (strncmp(ua, "Remote", strlen("Remote")) != 0) && (strncmp(ua, "Roku", strlen("Roku")) != 0)) return strdup(uri); diff --git a/src/transcode.c b/src/transcode.c index 3568d7e1..69a2cb6d 100644 --- a/src/transcode.c +++ b/src/transcode.c @@ -552,6 +552,12 @@ transcode_needed(struct evkeyvalq *headers, char *file_codectype) { DPRINTF(E_DBG, L_XCODE, "Client is Front Row, using iTunes codecs\n"); + client_codecs = itunes_codecs; + } + else if (strncmp(user_agent, "Remote", strlen("Remote")) == 0) + { + DPRINTF(E_DBG, L_XCODE, "Client is Remote, using iTunes codecs\n"); + client_codecs = itunes_codecs; } else if (strncmp(user_agent, "Roku", strlen("Roku")) == 0)