UxPlay icon indicating copy to clipboard operation
UxPlay copied to clipboard

UxPlay doesn't restart streaming after the window is closed

Open rbribeiro opened this issue 4 years ago • 2 comments

If you start the mirroring and then close the window, UxPlay keeps running in the background and then you cannot see the iPad screen again unless you kill uxplay process.

I went through the UxPlay source code, but I wasn't able to figure out how it manages its window streaming. I thought this would be just a matter of using a callback and checking a window status, but, well, couldn't do it.

I think a solution would be to stop the whole thing when the window is closed, but I didn't find any callback to trigger when the window is closed... Is it hard to implement?

rbribeiro avatar Jan 09 '21 22:01 rbribeiro

the callback issue when the UxPlay window is closed is fixed in the updated UxPlay pr #58. right now I set it to kill the server when the window is closed. Maybe you think it should instead "stay on line", and wait for a new iPad to connect? Might be possible quite easily (or not)

fduncanh avatar Aug 05 '21 21:08 fduncanh

actually, reviewing your issue made me realize that the "correct" behavior when the mirror display window is closed is to relaunch the server, waiting for a new iPad or whatever to connect. I just fixed the updated UxPlay to do this. The the uxplay process itself is only terminated by ctrl-C in the terminal window. PR #58

fduncanh avatar Aug 05 '21 23:08 fduncanh