mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
API: make "state" into a property
This commit is contained in:
@@ -33,7 +33,6 @@ class ClapperPlayer extends GstClapper.Clapper
|
||||
this.widget = gtk4plugin.video_sink.widget;
|
||||
this.widget.add_css_class('videowidget');
|
||||
|
||||
this.state = GstClapper.ClapperState.STOPPED;
|
||||
this.visualization_enabled = false;
|
||||
|
||||
this.webserver = null;
|
||||
@@ -518,7 +517,6 @@ class ClapperPlayer extends GstClapper.Clapper
|
||||
|
||||
_onStateChanged(player, state)
|
||||
{
|
||||
this.state = state;
|
||||
this.emitWs('state_changed', state);
|
||||
|
||||
if(state !== GstClapper.ClapperState.BUFFERING) {
|
||||
|
Reference in New Issue
Block a user