Basic streaming working on new-core

This commit is contained in:
Cameron Gutman
2017-05-15 00:30:25 -07:00
parent 73e4970a43
commit bedcbfbb7e
3 changed files with 104 additions and 28 deletions

View File

@@ -238,6 +238,8 @@ public class NvConnection {
public void start(AudioRenderer audioRenderer, VideoDecoderRenderer videoDecoderRenderer, NvConnectionListener connectionListener)
{
MoonBridge.setupBridge(videoDecoderRenderer, audioRenderer, connectionListener);
context.connListener = connectionListener;
new Thread(new Runnable() {
public void run() {
try {

View File

@@ -22,7 +22,7 @@ public class MoonBridge {
private static NvConnectionListener connectionListener;
static {
System.load("moonlight-core");
System.loadLibrary("moonlight-core");
init();
}
@@ -123,7 +123,7 @@ public class MoonBridge {
MoonBridge.connectionListener = null;
}
public static native void startConnection(String address, String appVersion, String gfeVersion,
public static native int startConnection(String address, String appVersion, String gfeVersion,
int width, int height, int fps,
int bitrate, boolean streamingRemotely,
int audioConfiguration, boolean supportsHevc,