示例#1
0
 def setup_playing(cls):
     """SocketIO Api: setup_playing()"""
     if not RuntimeStatus.are_record_replay_modules_ready():
         ModuleApi.start('record_replay_required_modules')
     if not RuntimeStatus.are_all_hardware_ready():
         HardwareApi.health_check('all')
     cls.__exec_bash_tool('start_player')
     RuntimeStatus.get_tools().playing_status = ToolStatus.PLAYING_CHECKING
     RuntimeStatus.broadcast_status_if_changed()
示例#2
0
 def setup_recording(cls):
     """SocketIO Api: setup_recording()"""
     if not RuntimeStatus.are_record_replay_modules_ready():
         ModuleApi.start('record_replay_required_modules')
     if not RuntimeStatus.are_all_hardware_ready():
         HardwareApi.health_check('all')
     RuntimeStatus.get_tools().recording_status = (
         ToolStatus.RECORDING_CHECKING)
     RuntimeStatus.broadcast_status_if_changed()