Config
DEFAULT_CONFIG_DATA
module-attribute
¶
DEFAULT_CONFIG_DATA = {
"main.lang": "en-eng",
"sound.sound_font_path": None,
"sound.output_sound_device_id": None,
"image.image_update_method": "sync",
"image.image_resample_method": "bilinear",
"playback.rewind_count_seconds": 5,
"playback.volume_change_percent": 0.05,
"playback.max_volume_percent": 2.0,
"playlist.recursive_search": False,
"keys.quit": "q,й",
"keys.rewind_forward": "*",
"keys.rewind_back": "/",
"keys.volume_up": "+",
"keys.volume_down": "-",
"debag.logging": False,
}
Default configuration values.
SeaPlayerConfig ¶
The main configuration class of the SeaPlayer.
Parameters
Parameter | Default | Description |
---|---|---|
filepath
str
|
required | The path to the configuration file. |
default_data
Dict[str, Any]
|
DEFAULT_CONFIG_DATA
|
Default configuration values. Defaults to DEFAULT_CONFIG_DATA. |
image_resample_method
property
writable
¶
The image resampling method.
Returns
Type | Description |
---|---|
Literal['nearest', 'bilinear', 'bicubic', 'lanczos', 'hamming', 'box']
|
The image resampling method. |
key_quit
property
writable
¶
key_rewind_back
property
writable
¶
key_rewind_forward
property
writable
¶
key_volume_down
property
writable
¶
key_volume_up
property
writable
¶
lang
property
writable
¶
logging
property
writable
¶
max_volume_percent
property
writable
¶
output_sound_device_id
property
writable
¶
recursive_search
property
writable
¶
rewind_count_seconds
property
writable
¶
The value of the seconds by which the current sound will be rewound.
Returns
Type | Description |
---|---|
int
|
Rewind in seconds. |