screencastService: Use strings for states

Using strings instead of numbers allows for easier debugging, it means
we can just log the state itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2197>

(cherry picked from commit 98cfce0ebe)
This commit is contained in:
Jonas Dreßler 2022-01-29 00:31:00 +01:00 committed by robert.mader@collabora.com
parent 912ca6bee7
commit 89ac78e33f

View file

@ -29,16 +29,16 @@ const DEFAULT_FRAMERATE = 30;
const DEFAULT_DRAW_CURSOR = true;
const PipelineState = {
INIT: 0,
PLAYING: 1,
FLUSHING: 2,
STOPPED: 3,
INIT: 'INIT',
PLAYING: 'PLAYING',
FLUSHING: 'FLUSHING',
STOPPED: 'STOPPED',
};
const SessionState = {
INIT: 0,
ACTIVE: 1,
STOPPED: 2,
INIT: 'INIT',
ACTIVE: 'ACTIVE',
STOPPED: 'STOPPED',
};
var Recorder = class {