Changing layout using API not working all the time on versions >252

Player Version

Seems to be, that all versions >252 are affected by this. I tested yesterday with versions:
I finally installed version 252 and it worked:

CMS version: 2.3.8



My goal is to play predefined layout on demand.
I have created a script, that sends interrupt layout command to Xibo CMS API. For some reason, it’s not working properly on newer Xibo players (Windows versions, haven’t tested the other platforms), after the command is sent (sometimes the command is sent during the time, when the old command still hasn’t finished), it only rarely starts playing the layout that was defined in the API command. When I add older player versions in the same group, they start playing immediately (even if the old layout hasn’t finished yet).

My setup:

Explanation of my setup:
When the button is pressed, Arduino board (connected using USB, but to computer it acts as COM port) sends command to PC. In PC, there is a script running, that listens to COM port and based on input, it connects to Xibo CMS API, sends a command to change layout on predefined display group.

Problem is, that when multiple API calls are made, Xibo player won’t interrupt the playing of an old layout. Old versions (<=252) are running properly, so when I send API command, it starts playing immediately.

API query:
url = “https://LOCAL_XIBO_INSTALLATION/api/displaygroup/24/action/changeLayout?envelope=1”
post_data = {‘layoutId’: ‘124’,
‘downloadRequired’: ‘true’,
‘changeMode’: ‘replace’}

I didn’t see any errors in the player (error report from one of the > 252 installations):
2021-08-10 13:48:46RegionMedia_MediaStoppedEvent: 693
2021-08-10 13:48:46RegionStopMedia: 693 stopping, region stopped False
2021-08-10 13:48:46RegionStartMedia: Starting media at position: 0
2021-08-10 13:48:46Region - CreateNextMediaNodeCreating new media: forecastio, 692
2021-08-10 13:48:46Region - SetNextMediaNodeNew media detected forecastio
2021-08-10 13:48:46LayoutDurationElapsedEvent: Region Elapsed
2021-08-10 13:48:46RegionSetNextMediaNodeInOptions: Region 359 Expired
2021-08-10 13:48:46RegionMediaExpiredEvent: Media Elapsed
2021-08-10 13:48:46RegionDurationElapsedEvent: Media Elapsed:
2021-08-10 13:48:46Media - SignalElapsedEventMedia Complete

Please let me know, if additional information is needed.


This is an update regarding this issue. The issue has been resolved by setting the downloadRequired parameter to False. When this is set to true, the player will download all of the required files from the CMS before displaying the event, which can delay the layout from appearing on the screen.

Many Thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.