chore: 更新默认信令服务器地址为 wss://www.ttstd.com/signal
This commit is contained in:
@@ -82,7 +82,7 @@ public class MainActivity extends BaseMvvmActivity<MainViewModel, ActivityMainBi
|
||||
@Override
|
||||
protected void initView() {
|
||||
// 默认服务器地址
|
||||
binding.etServerUrl.setText("ws://175.178.213.60:8088/ws/signal");
|
||||
binding.etServerUrl.setText("wss://www.ttstd.com/signal");
|
||||
// 生成设备ID
|
||||
// if (binding.etDeviceId.getText().toString().isEmpty()) {
|
||||
// binding.etDeviceId.setText(DeviceUtils.getSystemSerialNumber());
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:hint="ws://175.178.213.60:8088/ws/signal"
|
||||
android:hint="wss://www.ttstd.com/signal"
|
||||
android:inputType="textUri" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -119,7 +119,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
btnDisconnectControl = findViewById(R.id.btn_disconnect_control);
|
||||
|
||||
// 默认服务器地址
|
||||
etServerUrl.setText("ws://175.178.213.60:8088/ws/signal");
|
||||
etServerUrl.setText("wss://www.ttstd.com/signal");
|
||||
// 生成设备ID(非系统签名,使用兜底方案获取设备标识)
|
||||
myDeviceId = DeviceUtils.getSerialNumber(this);
|
||||
etDeviceId.setText(myDeviceId);
|
||||
@@ -379,6 +379,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
Log.e(TAG, "onError: " + error);
|
||||
tvStatus.setText("状态: 连接错误 - " + error);
|
||||
updateUI(false);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:hint="ws://175.178.213.60:8088/ws/signal"
|
||||
android:hint="wss://www.ttstd.com/signal"
|
||||
android:inputType="textUri" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -19,7 +19,7 @@ export const DEFAULT_ICE_SERVERS = [
|
||||
];
|
||||
|
||||
export const store = reactive({
|
||||
serverUrl: 'ws://175.178.213.60:8088/ws/signal',
|
||||
serverUrl: 'wss://www.ttstd.com/signal',
|
||||
deviceId: '',
|
||||
targetDeviceId: '',
|
||||
iceServers: DEFAULT_ICE_SERVERS,
|
||||
|
||||
@@ -20,7 +20,7 @@ const List<Map<String, dynamic>> kIceServers = [
|
||||
];
|
||||
|
||||
/// 信令 WebSocket 默认地址。
|
||||
const String kDefaultSignalServer = 'ws://175.178.213.60:8088/ws/signal';
|
||||
const String kDefaultSignalServer = 'wss://www.ttstd.com/signal';
|
||||
|
||||
/// DataChannel 标签,控制端与被控端需一致。
|
||||
const String kDataChannelLabel = 'control_channel';
|
||||
|
||||
@@ -473,7 +473,7 @@ class _ControllerHomeState extends State<ControllerHome> {
|
||||
const SizedBox(height: 8),
|
||||
CupertinoTextField(
|
||||
controller: _serverUrlController,
|
||||
placeholder: 'ws://175.178.213.60:8088/ws/signal',
|
||||
placeholder: 'wss://www.ttstd.com/signal',
|
||||
padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 12),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
|
||||
Reference in New Issue
Block a user