Force using local camera view for H2D if legacy network plugin is used

This commit is contained in:
Noisyfox
2025-05-26 20:02:16 +08:00
parent 6b9ce834e1
commit 659a65f27f

View File

@@ -155,6 +155,11 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
m_lan_passwd = obj->get_access_code();
m_device_busy = obj->is_camera_busy_off();
m_tutk_state = obj->tutk_state;
if (DeviceManager::get_printer_series(obj->printer_type) == "series_o" && NetworkAgent::use_legacy_network) {
// Legacy plugin cannot support remote play for H2D, force using local mode
m_remote_proto = MachineObject::LVR_None;
}
} else {
m_camera_exists = false;
m_lan_mode = false;