mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-02 17:36:00 -05:00
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:
parent
abbba5cf47
commit
040e760789
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user