mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 13:21:13 +00:00
Updated default remote port to be 7905
This commit is contained in:
parent
375e0d0e28
commit
264f564243
@ -27,7 +27,7 @@
|
||||
#define DLL_EXPORT
|
||||
#endif
|
||||
|
||||
#define DEFAULT_PORT 9002
|
||||
#define DEFAULT_PORT 7905
|
||||
#define DEFAULT_PASSWORD ""
|
||||
|
||||
using namespace musik::core::sdk;
|
||||
@ -932,6 +932,7 @@ extern "C" DLL_EXPORT void SetPreferences(musik::core::sdk::IPreferences* prefs)
|
||||
if (prefs) {
|
||||
prefs->GetInt(key::port.c_str(), DEFAULT_PORT);
|
||||
prefs->GetString(key::password.c_str(), nullptr, 0, DEFAULT_PASSWORD);
|
||||
prefs->Save();
|
||||
}
|
||||
|
||||
remote.CheckRunningStatus();
|
||||
|
@ -33,7 +33,7 @@ public class SettingsActivity extends AppCompatActivity {
|
||||
|
||||
private void rebindUi() {
|
||||
Views.setTextAndMoveCursorToEnd(this.addressText, prefs.getString("address", "192.168.1.100"));
|
||||
Views.setTextAndMoveCursorToEnd(this.portText, String.format(Locale.ENGLISH, "%d", prefs.getInt("port", 9002)));
|
||||
Views.setTextAndMoveCursorToEnd(this.portText, String.format(Locale.ENGLISH, "%d", prefs.getInt("port", 7905)));
|
||||
Views.setTextAndMoveCursorToEnd(this.passwordText, prefs.getString("password", ""));
|
||||
}
|
||||
|
||||
|
@ -448,7 +448,7 @@ public class WebSocketService {
|
||||
Locale.ENGLISH,
|
||||
"ws://%s:%d",
|
||||
prefs.getString("address", "192.168.1.100"),
|
||||
prefs.getInt("port", 9002));
|
||||
prefs.getInt("port", 7905));
|
||||
|
||||
socket = factory.createSocket(host, CONNECTION_TIMEOUT_MILLIS);
|
||||
socket.addListener(webSocketAdapter);
|
||||
|
@ -38,7 +38,7 @@
|
||||
<string name="status_volume">volume %1d%%</string>
|
||||
<string name="edit_connection_info">connection info:</string>
|
||||
<string name="edit_connection_hostname">ip address or hostname</string>
|
||||
<string name="edit_connection_port">port</string>
|
||||
<string name="edit_connection_port">port (default 7905)</string>
|
||||
<string name="edit_connection_password">password (default empty)</string>
|
||||
<string name="transport_not_playing">not playing</string>
|
||||
<string name="search_hint">search</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user