mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
Allow playback on non apple airplay devices
This commit is contained in:
parent
9172a1618d
commit
49ab2a3ce4
@ -140,6 +140,7 @@ static const char *raop_devtype[] =
|
||||
"AirPort Express 802.11g",
|
||||
"AirPort Express 802.11n",
|
||||
"AppleTV",
|
||||
"Other",
|
||||
};
|
||||
|
||||
|
||||
@ -3719,6 +3720,8 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha
|
||||
|
||||
if (strncmp(p, "AppleTV", strlen("AppleTV")) == 0)
|
||||
devtype = RAOP_DEV_APPLETV;
|
||||
else
|
||||
devtype = OTHER;
|
||||
|
||||
no_am:
|
||||
DPRINTF(E_DBG, L_PLAYER, "AirTunes device %s: password: %s, type %s\n", name, (password) ? "yes" : "no", raop_devtype[devtype]);
|
||||
|
@ -1844,6 +1844,11 @@ raop_session_make(struct raop_device *rd, int family, raop_status_cb cb)
|
||||
rs->auth_quirk_itunes = 0;
|
||||
rs->wants_metadata = 1;
|
||||
break;
|
||||
case OTHER:
|
||||
rs->encrypt = 0;
|
||||
rs->auth_quirk_itunes = 0;
|
||||
rs->wants_metadata = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
rs->ctrl = evrtsp_connection_new(address, port);
|
||||
|
@ -20,6 +20,7 @@ enum raop_devtype {
|
||||
RAOP_DEV_APEX_80211G,
|
||||
RAOP_DEV_APEX_80211N,
|
||||
RAOP_DEV_APPLETV,
|
||||
OTHER,
|
||||
};
|
||||
|
||||
struct raop_session;
|
||||
|
Loading…
Reference in New Issue
Block a user