mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
API: add toggle_play method
This commit is contained in:
@@ -355,15 +355,6 @@ class ClapperPlayer extends GstClapper.Clapper
|
||||
controls.volumeScale.set_value(volume);
|
||||
}
|
||||
|
||||
toggle_play()
|
||||
{
|
||||
const action = (this.state === GstClapper.ClapperState.PLAYING)
|
||||
? 'pause'
|
||||
: 'play';
|
||||
|
||||
this[action]();
|
||||
}
|
||||
|
||||
next_chapter()
|
||||
{
|
||||
return this._switchChapter(false);
|
||||
|
Reference in New Issue
Block a user