mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-23 12:05:47 -04:00
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:
parent
2f04529165
commit
f9a76aeb1a
@ -762,6 +762,12 @@ transcode_needed(struct evkeyvalq *headers, char *file_codectype)
|
|||||||
{
|
{
|
||||||
DPRINTF(E_DBG, L_XCODE, "Client is Remote, using iTunes codecs\n");
|
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;
|
client_codecs = itunes_codecs;
|
||||||
}
|
}
|
||||||
else if (strncmp(user_agent, "Roku", strlen("Roku")) == 0)
|
else if (strncmp(user_agent, "Roku", strlen("Roku")) == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user