mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-23 08:36:42 +00:00
Remove unneeded function and imports from Limelight
This commit is contained in:
@@ -1,21 +1,16 @@
|
|||||||
package com.limelight;
|
package com.limelight;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.PrintStream;
|
|
||||||
|
|
||||||
import com.limelight.binding.LibraryHelper;
|
import com.limelight.binding.LibraryHelper;
|
||||||
import com.limelight.binding.PlatformBinding;
|
import com.limelight.binding.PlatformBinding;
|
||||||
import com.limelight.input.gamepad.Gamepad;
|
import com.limelight.input.gamepad.Gamepad;
|
||||||
import com.limelight.input.gamepad.GamepadListener;
|
import com.limelight.input.gamepad.GamepadListener;
|
||||||
import com.limelight.input.gamepad.NativeGamepad;
|
|
||||||
import com.limelight.nvstream.NvConnection;
|
import com.limelight.nvstream.NvConnection;
|
||||||
import com.limelight.nvstream.NvConnectionListener;
|
import com.limelight.nvstream.NvConnectionListener;
|
||||||
import com.limelight.nvstream.StreamConfiguration;
|
import com.limelight.nvstream.StreamConfiguration;
|
||||||
import com.limelight.nvstream.av.video.VideoDecoderRenderer;
|
import com.limelight.nvstream.av.video.VideoDecoderRenderer;
|
||||||
import com.limelight.nvstream.http.NvHTTP;
|
import com.limelight.nvstream.http.NvHTTP;
|
||||||
import com.limelight.settings.PreferencesManager;
|
|
||||||
import com.limelight.settings.PreferencesManager.Preferences;
|
|
||||||
import com.limelight.settings.PreferencesManager.Preferences.Resolution;
|
import com.limelight.settings.PreferencesManager.Preferences.Resolution;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.SocketException;
|
import java.net.SocketException;
|
||||||
@@ -118,19 +113,6 @@ public class Limelight implements NvConnectionListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new instance and starts the stream.
|
|
||||||
* @param host the host pc to connect to. Can be a hostname or IP address.
|
|
||||||
*/
|
|
||||||
public static void createInstance(String host) {
|
|
||||||
Limelight limelight = new Limelight(host);
|
|
||||||
|
|
||||||
Preferences prefs = PreferencesManager.getPreferences();
|
|
||||||
StreamConfiguration streamConfig = createConfiguration(prefs.getResolution());
|
|
||||||
|
|
||||||
limelight.startUp(streamConfig, prefs.getFullscreen());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The entry point for the application. <br>
|
* The entry point for the application. <br>
|
||||||
* Does some initializations and then creates the main frame.
|
* Does some initializations and then creates the main frame.
|
||||||
|
|||||||
Reference in New Issue
Block a user