Would a `dstnat` work even if I don't know the IP address of the recipient?
It isn't in the nature of this type of protocol for the destination to be secret or random. If it isn't a configurable item somewhere, the destination IP will be as well-known as the UDP port number,
presumably 10001 or 1900, rather than my example's picked-out-of-the-air 9999. If it were otherwise, the intended receivers would have no way to "catch" the stream. The protocol might be using universal broadcast, 255.255.255.255 in my example, or it could be directed broadcast, as I say. Don't ask me to tell you which. You've got the device; you tell us!
I have no idea what that underlying protocol is; I don't even have one of these devices. A MikroTik forum isn't the best place to pursue the matter. Find the details, then bring them back for us to chew on.
Given the presumed-relevant port numbers above, some playing around with a packet sniffer should tell you what the destination IP is.
Flood Unknown Multicast
In the thread title, you said "broadcast," but now you're saying "multicast." Which is it? It matters.
I'm not sure if that wouldn't reduce security provided by VLANs?
Do I understand correctly that you want VLANs to isolate things, but then you ask for some configuration magic that un-isolates them, but with no reduction in this vague notion of "security?"
By asking this question, you've decided this protocol is to be allowed through. I can only presume you did that advisedly. I can't make the decision for you. I don't have a "Ubiquity Cloud Key Gen2+," nor do I know what it's good for, nor do I care. All I'm talking about here is UDP. Anything above that layer of the network protocol stack is up to you.
I did some minimal amount of web searching in preparing this response, but couldn't find much of use. You'll be better motivated than me to find protocol manuals, IP addresses, port numbers, security implications, and such.
Until you gather that info and make your motivated evaluation, all I can tell you is that my dstnat solution
might forward a single UDP port through. Note the tone of the offering: I'm fully prepared for someone here to tell me that it won't work and can't be replaced with something that will.
I'm using a switch with SwOS
If the SwOS device isn't one of those that can be made to reboot into RouterOS, and if you cannot move the UniFi device to a port on the RouterOS device ahead of it, I think you're pretty well stuffed. My solution is based on the notion that the UniFi device is plugged into a RouterOS device, allowing you to write rules that make intelligent decisions about the traffic based on destination IP, port, etc. With SwOS, I believe your only option is to flood broadcast traffic, which sucks, and it might not even work, if there is no option to flood across VLANs.
By the way, I assume your drawing is wrong in its implication that the UniFi stream source on VLAN 20 is on the same switch port as the untagged traffic's recipients, these mobile devices of yours. I hope the truth is that the traffic must cross the switch in some way, emerging on another port.
I point this out not to nit-pick, but in case you decide to post another drawing. A misleading drawing is nearly as bad as no drawing at all.