mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Fix use of negotiated stream parameters
This commit is contained in:
parent
67469103d4
commit
203fcd82e7
@ -17,7 +17,6 @@ public class ConnectionContext {
|
||||
public String serverAppVersion;
|
||||
public String serverGfeVersion;
|
||||
|
||||
public int negotiatedVideoFormat;
|
||||
public int negotiatedWidth, negotiatedHeight;
|
||||
public int negotiatedFps;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user