Workaround for Studio Editor Bug when editing the loadding spinner

Hi.

When you try to edit or modify the loading spinner using the Studio Editor, the spinner gets distorted and does not work as expected.

The is a bug on the studio editor that recreates de configuration json using double quotes to surround integer values which confuses the player interpreter.

The correct json configuration should be as follows:

"loadingSpinner": {
			"imageUrl": "",
			"lines": 16,
			"lineLength": 15,
			"width": 4,
			"radius": 20,
			"corners": 1,
			"rotate": 0,
			"direction": -1,
			"color": "rgba(20, 204, 96, 0.7)",
			"speed": 1.6,
			"trail": 70,
			"shadow": false,
			"className": "spinner",
			"zIndex": 2000000000,
			"top": "auto",
			"left": "auto",
			"plugin": true

But whenever I modify any parameter, the values are stored quoted as follows:

"loadingSpinner": {
			"imageUrl": "",
			"lines": "16",
			"lineLength": "15",
			"width": "4",
			"radius": "20",
			"corners": 1,
			"rotate": 0,
			"direction": -1,
			"color": "rgba(20, 204, 96, 0.7)",
			"speed": 1.6,
			"trail": "70",
			"shadow": false,
			"className": "spinner",
			"zIndex": 2000000000,
			"top": "auto",
			"left": "auto",
			"plugin": true

To fix it, you neet to edit the UIConf using the Admin Console and using the External Editor to delete the quotes for the spinner to work as expected.

Hi @felipe.borrero.

Thank you for the report. I can confirm that it is in fact a bug.
It was forwarded to the relevant dev team.

Cheers,

1 Like

Hi @felipe.borrero,

A pull has been made here: https://github.com/kaltura/player-studio/pull/95/files

Thanks again for your report,