Allow playback on non apple airplay devices

This commit is contained in:
Kai Elwert 2013-06-24 17:13:10 +02:00 committed by ejurgensen
parent 9172a1618d
commit 49ab2a3ce4
3 changed files with 9 additions and 0 deletions

View File

@ -140,6 +140,7 @@ static const char *raop_devtype[] =
"AirPort Express 802.11g", "AirPort Express 802.11g",
"AirPort Express 802.11n", "AirPort Express 802.11n",
"AppleTV", "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) if (strncmp(p, "AppleTV", strlen("AppleTV")) == 0)
devtype = RAOP_DEV_APPLETV; devtype = RAOP_DEV_APPLETV;
else
devtype = OTHER;
no_am: no_am:
DPRINTF(E_DBG, L_PLAYER, "AirTunes device %s: password: %s, type %s\n", name, (password) ? "yes" : "no", raop_devtype[devtype]); DPRINTF(E_DBG, L_PLAYER, "AirTunes device %s: password: %s, type %s\n", name, (password) ? "yes" : "no", raop_devtype[devtype]);

View File

@ -1844,6 +1844,11 @@ raop_session_make(struct raop_device *rd, int family, raop_status_cb cb)
rs->auth_quirk_itunes = 0; rs->auth_quirk_itunes = 0;
rs->wants_metadata = 1; rs->wants_metadata = 1;
break; break;
case OTHER:
rs->encrypt = 0;
rs->auth_quirk_itunes = 0;
rs->wants_metadata = 0;
break;
} }
rs->ctrl = evrtsp_connection_new(address, port); rs->ctrl = evrtsp_connection_new(address, port);

View File

@ -20,6 +20,7 @@ enum raop_devtype {
RAOP_DEV_APEX_80211G, RAOP_DEV_APEX_80211G,
RAOP_DEV_APEX_80211N, RAOP_DEV_APEX_80211N,
RAOP_DEV_APPLETV, RAOP_DEV_APPLETV,
OTHER,
}; };
struct raop_session; struct raop_session;