mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Add music visualizations
This commit is contained in:
@@ -56,6 +56,7 @@ class ClapperPlayer extends GstPlayer.Player
|
||||
this.run_loop = opts.run_loop || false;
|
||||
this.widget = gtkglsink.widget;
|
||||
this.state = GstPlayer.PlayerState.STOPPED;
|
||||
this.visualization_enabled = false;
|
||||
|
||||
this._playlist = [];
|
||||
this._trackId = 0;
|
||||
@@ -103,6 +104,20 @@ class ClapperPlayer extends GstPlayer.Player
|
||||
return this._playlist;
|
||||
}
|
||||
|
||||
set_visualization_enabled(value)
|
||||
{
|
||||
if(value === this.visualization_enabled)
|
||||
return;
|
||||
|
||||
super.set_visualization_enabled(value);
|
||||
this.visualization_enabled = value;
|
||||
}
|
||||
|
||||
get_visualization_enabled()
|
||||
{
|
||||
return this.visualization_enabled;
|
||||
}
|
||||
|
||||
seek_seconds(position)
|
||||
{
|
||||
this.seek(position * 1000000000);
|
||||
|
Reference in New Issue
Block a user