Add support for Remote, the iPhone remote control for iTunes

Remote needs the same DAAP query quirk as iTunes and supports the
same codecs.
This commit is contained in:
Ace Jones 2009-12-30 18:49:52 +01:00 committed by Julien BLACHE
parent abbba5cf47
commit 040e760789
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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)