Screenshot of a specific layout

Again, I’ve been blessed with some strange behaviours in some PCs.

Some of my players have tickers (feed, Data Set and forecast) stopping after hours running. The layout executes fine (I have a video introduction to my tickers), but the content doesn’t show. If I reset the app, all works again.

For this reason, and many others, I would need to keep monitoring those players via screenshots.

Can I execute a shell command, or anything like this, to make a screenshot of the layout?

In some way, can I reproduce the CMS command for the screenshot by myself?

You can set a screen shot interval in the Display Settings which will cause a screen shot to be provided every N minutes.

Alternatively you can write your own application to take screenshots and then have Xibo send those - you’d need to broadcast an intent to:

android.intent.action.SCREENSHOT

Which contained the uri to your saved image, like:

Intent shareIntent = new Intent();
shareIntent.setAction(Intent.SCREENSHOT);
shareIntent.putExtra(Intent.EXTRA_STREAM, uriToImage);
shareIntent.setType("image/jpeg");

Xibo listens for these and sends the screenshots to the CMS for processing.