<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 4, 2023 at 7:36 PM Jay Harbeston <<a href="mailto:jharbestonus@gmail.com">jharbestonus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Subject says it, I used to use the api to capture a screen until it was removed, and would like to get a similar function back again.<br>
<br>
I see in the comments to remove the function that qt screen grab has taken over, but haven’t found an api call(or similar) to get the equivalent functionality. <br>
<br>
Any ideas!?<br>
<br>
Regards!<br>
<br>
Jay<br></blockquote><div><br></div><div>Jay,</div><div><br></div><div>I know of 2 APIs for taking a screenshot of the currently displayed frontend screen<br><br>Method 1:<br>API of MythFE aka MythFEXML: GetScreenShot API:<br>"http://<fe-hosname>:<upnpport>/MythFE/GetScreenShot "<br>This returns a file object, thus can be executed in a browser with<br>The mythFE API is registered to the upnp html server.<br><br>Since this summer, the frontend upnp server port is now ServicePort + 4 (default 6551)<br>See commit<br><a href="https://github.com/MythTV/mythtv/commit/dd35e853299fad03a18a8db7adbd5a96aa31d783">https://github.com/MythTV/mythtv/commit/dd35e853299fad03a18a8db7adbd5a96aa31d783</a><br><span style="font-family:monospace"> int nPort = XmlConfiguration().GetValue("UPnP/MythFrontend/ServicePort", 6547);<br> // frontend upnp server is now ServicePort + 4 (default 6551)<br> nPort += 4;</span><br></div><div><br></div><div>I just tested this on current master (v34-pre) and this works in a web-browser</div><div>http://<fe-hosname>:6551/MythFE/GetScreenShot </div><div><br>Method 2: <br>ACTION_SCREENSHOT<br>triggered by the MythTV Services "Frontend/SendAction" with a POST action<br>or with a dedicated key on your remote:<br>Keybindings Editor: assign a key to the "SCREENSHOT" Action <br><br>This saves the screenshot to the "SreenShotPath" setting, defaults to "/tmp"<br><br>Further reading<br><a href="https://lists.archive.carbon60.com/mythtv/users/625072">https://lists.archive.carbon60.com/mythtv/users/625072</a></div><div><br></div><div>HTH,</div><div>Roland<br></div></div></div>