Pass surroundAudioInfo in /resume too

This commit is contained in:
Cameron Gutman 2018-01-19 21:32:00 -08:00
parent 7a8166ec09
commit f644436aeb

View File

@ -647,7 +647,9 @@ public class NvHTTP {
public boolean resumeApp(ConnectionContext context) throws IOException, XmlPullParserException {
String xmlStr = openHttpConnectionToString(baseUrlHttps + "/resume?" + buildUniqueIdUuidString() +
"&rikey="+bytesToHex(context.riKey.getEncoded()) +
"&rikeyid="+context.riKeyId, false);
"&rikeyid="+context.riKeyId +
"&surroundAudioInfo=" + ((context.streamConfig.getAudioChannelMask() << 16) + context.streamConfig.getAudioChannelCount()),
false);
String resume = getXmlString(xmlStr, "resume");
return Integer.parseInt(resume) != 0;
}