Add User-Agent detection for iTunes video playback on OSX

iTunes on OSX has a different User-Agent when playing back video
files.  Detect this so we can deterimine his codec support.
This commit is contained in:
Justin Maggard 2014-02-05 17:34:27 -08:00
parent 2f04529165
commit f9a76aeb1a

View File

@ -762,6 +762,12 @@ transcode_needed(struct evkeyvalq *headers, char *file_codectype)
{
DPRINTF(E_DBG, L_XCODE, "Client is Remote, using iTunes codecs\n");
client_codecs = itunes_codecs;
}
else if (strncmp(user_agent, "AppleCoreMedia", strlen("AppleCoreMedia")) == 0)
{
DPRINTF(E_DBG, L_XCODE, "Client is AppleCoreMedia, using iTunes codecs\n");
client_codecs = itunes_codecs;
}
else if (strncmp(user_agent, "Roku", strlen("Roku")) == 0)