Miracast stream takes 2 minutes to start, then lags a lot
I am trying to use gnome-network-displays with a Legamaster AirServer Connect 2 and experience several problems.
- The device is shown twice in the video sinks list (possibly because it supports Miracast, Google cast and Airplay). Both entries have the same name and are thus indistinguishable.
- One of the video sinks then doesn't work at all. After showing "Establishing connection to sink" for a while, it shows "Error" with no further details.
- The other video sink partially works, but it takes two minutes to actually start transferring the screen's contents. During these two minutes the outgoing network is busy with around 1.5MiB/s. The Legamaster shows that my laptop is trying to connect (it shows its hostname) during these two minutes.
- Once connected, there is a lag. Mostly the lag is many seconds (sometimes over a minute), sometimes it reduces to about a second, then rises to many seconds again. The change in the latency seems random and not predictable.
Here is a some debug output (I also added comments which actions led to which output: https://pastebin.com/UMgnxjV2 The connection was stuck so I had to cancel it, so there is no debug output from a working (but lagging) connection.