Miraclecast – Miracast (WiFi Display) Implementation
github.com
github.com
Regrettably, in my own experience, it's rarely worth the effort to wrestle with wireless displays. Unless you either have 'highly' compatible devices (i.e. Samsung phone to Samsung TV), it's often rife with bad performance, bizarre behavior, and sudden drops.
My personal favorite quirk is a Fire stick that almost always exits mirroring before I can even begin streaming to it. It usually works on the second attempt, but it's so consistent that I've wondered if there's just something else out there "triggering" it when it sees the signal.
Aruba wireless (like many enterprise wireless vendors) has a mDNS proxying and filtering system which is essential for places like college campuses. Airplay and Miracast (infrastructure mode) both use mDNS for service discovery. In Aruba the system is called Airgroup. When seeing a new MAC address the wireless controllers queries the RADIUS server. The RADIUS server can return a configuration for that new MAC address which tells the controller what other devices can interact with this new device using mDNS.
I always assumed this vendor adds and removes Airgroup configuration to allow the phone and the TV to see mdns from each other while preventing this from other nearby devices on the same VLAN or SSID. This trick might be enough but also pushing a DACL to the wireless controller to properly packet filter all network traffic from unapproved devices would strengthen the solution.
I was VPN’ed into the US anyway.
It was quite slick.