diff --git a/actions.py b/actions.py index 6c87de7..23b2e9b 100644 --- a/actions.py +++ b/actions.py @@ -463,6 +463,10 @@ class Actions(object): def exit_openframeworks(self): self.video_driver.osc_client.send_message("/exit", True) + def switch_conjur_player_type(self, value): + self.data.update_conjur_player_type(value) + self.restart_openframeworks() + def toggle_of_screen_size(self, value): self.data.update_conjur_dev_mode(value) self.video_driver.osc_client.send_message("/dev_mode", True) diff --git a/data_centre/data.py b/data_centre/data.py index d9e53ab..7fae827 100644 --- a/data_centre/data.py +++ b/data_centre/data.py @@ -87,6 +87,13 @@ class Data(object): tag = tree.find("isDevMode") tag.text = str(int(value == 'dev')) tree.write(self.PATH_TO_CONJUR_DATA) + + def update_conjur_player_type(self, value): + print(value) + tree = ET.parse(self.PATH_TO_CONJUR_DATA) + tag = tree.find("playerType") + tag.text = str(value) + tree.write(self.PATH_TO_CONJUR_DATA) def get_setting_and_folder_from_name(self, setting_name): for folder_key , folder_item in self.settings.items(): diff --git a/json_objects/current_bankslot_number.json b/json_objects/current_bankslot_number.json index 0f0aec8..316c26a 100644 --- a/json_objects/current_bankslot_number.json +++ b/json_objects/current_bankslot_number.json @@ -1 +1 @@ -"1-2" \ No newline at end of file +"1-9" \ No newline at end of file diff --git a/json_objects/settings_default.json b/json_objects/settings_default.json index 833ed14..57d62ca 100644 --- a/json_objects/settings_default.json +++ b/json_objects/settings_default.json @@ -391,6 +391,14 @@ ], "value": "hdmi" }, + "VIDEOPLAYER_BACKEND": { + "action": "switch_conjur_player_type", + "options": [ + "omxPlayer", + "ofPlayer" + ], + "value": "ofPlayer" + }, "SCREEN_MODE": { "action": null, "options": [