Skip to content

botcity.plugins.recorder.BotRecorderPlugin

Bases: Thread

A video recorder for your BotCity bot.

Parameters:

Name Type Description Default
bot BaseBot

The bot to record.

required
output_file str

The file to save the video to.

'output.avi'

frame_rate property writable

Frame rate of the recorder.

Returns:

Name Type Description
int int

Frame rate of the recorder in frames per second.

scale property writable

Scale of the recorder.

Returns:

Name Type Description
int int

Scale of the recorder in percent.

state property

Get the recorder state.

Returns:

Name Type Description
RecorderState RecorderState

Recorder state.

pause()

Pause the recorder.

resume()

Resume the recorder.

start()

Start the recorder.

stop()

Stop the recorder.