UniFi video was not the best, so they transitioned to UniFi protect which is a good system. Not perfect but its getting there.
Quality wise it is much better than Dahua. Haven’t really experimented Foscam so can’t say. Price difference is steep so thats something to consider.