Updated default remote port to be 7905

This commit is contained in:
casey langen 2017-02-17 22:19:50 -08:00
parent 375e0d0e28
commit 264f564243
4 changed files with 5 additions and 4 deletions

View File

@ -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();

View File

@ -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", ""));
}

View File

@ -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);

View File

@ -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>