mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-06 16:06:10 +00:00
Basic streaming working on new-core
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user