« get me outta code hell

past 3 second threshold, (P) to seek to start - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/backend.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-07-17 20:09:09 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-07-17 20:09:09 -0300
commit7af31d6ccb2d1b0c47c0bbb60a7e51c64bb01bf1 (patch)
tree57f10337ee6a22155862e65086feaf9f51b69fe9 /backend.js
parent382d5afc7e2ac24f67b7c891328b8b9bb7e91058 (diff)
past 3 second threshold, (P) to seek to start
Diffstat (limited to 'backend.js')
-rw-r--r--backend.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend.js b/backend.js
index 048aec5..51419da 100644
--- a/backend.js
+++ b/backend.js
@@ -544,6 +544,10 @@ class QueuePlayer extends EventEmitter {
     this.player.seekTo(seconds)
   }
 
+  seekToStart() {
+    this.player.seekToStart()
+  }
+
   togglePause() {
     this.player.togglePause()
   }