mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-05 23:07:42 -05:00
Add CameraServer camera_feeds_updated signal, and document async behavior
This commit is contained in:
@@ -474,6 +474,7 @@ void CameraAndroid::update_feeds() {
|
||||
}
|
||||
|
||||
ACameraManager_deleteCameraIdList(cameraIds);
|
||||
emit_signal(SNAME(CameraServer::feeds_updated_signal_name));
|
||||
}
|
||||
|
||||
void CameraAndroid::remove_all_feeds() {
|
||||
|
||||
@@ -80,6 +80,7 @@ void CameraLinux::_update_devices() {
|
||||
free(devices);
|
||||
}
|
||||
|
||||
call_deferred("emit_signal", SNAME(CameraServer::feeds_updated_signal_name));
|
||||
usleep(1000000);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -363,6 +363,7 @@ void CameraMacOS::update_feeds() {
|
||||
add_feed(newfeed);
|
||||
};
|
||||
};
|
||||
emit_signal(SNAME(CameraServer::feeds_updated_signal_name));
|
||||
}
|
||||
|
||||
void CameraMacOS::set_monitoring_feeds(bool p_monitoring_feeds) {
|
||||
|
||||
Reference in New Issue
Block a user