Skip to content

Commit a129e3b

Browse files
committed
Added parameters for Zeroconf getInfo message
1 parent e9e39b5 commit a129e3b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

core/src/main/java/xyz/gianlu/librespot/core/ZeroconfServer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public class ZeroconfServer implements Closeable {
7171
DEFAULT_GET_INFO_FIELDS.addProperty("accountReq", "PREMIUM");
7272
DEFAULT_GET_INFO_FIELDS.addProperty("brandDisplayName", "librespot-org");
7373
DEFAULT_GET_INFO_FIELDS.addProperty("modelDisplayName", "librespot-java");
74+
DEFAULT_GET_INFO_FIELDS.addProperty("voiceSupport", "NO");
75+
DEFAULT_GET_INFO_FIELDS.addProperty("availability", "");
76+
DEFAULT_GET_INFO_FIELDS.addProperty("productID", 0);
77+
DEFAULT_GET_INFO_FIELDS.addProperty("tokenType", "default");
78+
DEFAULT_GET_INFO_FIELDS.addProperty("groupStatus", "NONE");
79+
DEFAULT_GET_INFO_FIELDS.addProperty("resolverVersion", "0");
80+
DEFAULT_GET_INFO_FIELDS.addProperty("scope", "streaming,client-authorization-universal");
7481

7582
DEFAULT_SUCCESSFUL_ADD_USER.addProperty("status", 101);
7683
DEFAULT_SUCCESSFUL_ADD_USER.addProperty("spotifyError", 0);
@@ -116,6 +123,7 @@ private ZeroconfServer(Session.Inner inner, Configuration conf) throws IOExcepti
116123
Map<String, String> txt = new HashMap<>();
117124
txt.put("CPath", "/");
118125
txt.put("VERSION", "1.0");
126+
txt.put("Stack", "SP");
119127

120128
boolean atLeastOne = false;
121129
instances = new JmDNS[bound.length];

0 commit comments

Comments
 (0)