Fix use of negotiated stream parameters

This commit is contained in:
Cameron Gutman 2017-05-15 21:37:26 -07:00
parent 67469103d4
commit 203fcd82e7
2 changed files with 2 additions and 9 deletions

View File

@ -17,7 +17,6 @@ public class ConnectionContext {
public String serverAppVersion;
public String serverGfeVersion;
public int negotiatedVideoFormat;
public int negotiatedWidth, negotiatedHeight;
public int negotiatedFps;
}

View File

@ -47,8 +47,6 @@ public class NvConnection {
}
this.context.riKeyId = generateRiKeyId();
this.context.negotiatedVideoFormat = -1;
}
private static SecretKey generateRiAesKey() throws NoSuchAlgorithmException {
@ -229,8 +227,8 @@ public class NvConnection {
MoonBridge.startConnection(context.serverAddress.getHostAddress(),
context.serverAppVersion, context.serverGfeVersion,
context.streamConfig.getWidth(), context.streamConfig.getHeight(),
context.streamConfig.getRefreshRate(), context.streamConfig.getBitrate(),
context.negotiatedWidth, context.negotiatedHeight,
context.negotiatedFps, context.streamConfig.getBitrate(),
context.streamConfig.getRemote(), context.streamConfig.getAudioConfiguration(),
context.streamConfig.getHevcSupported(), context.riKey.getEncoded(), ib.array());
}
@ -293,8 +291,4 @@ public class NvConnection {
public void sendMouseScroll(final byte scrollClicks) {
MoonBridge.sendMouseScroll(scrollClicks);
}
public int getActiveVideoFormat() {
return context.negotiatedVideoFormat;
}
}