« get me outta code hell

Seek controls - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-05-31 00:01:05 -0300
committerFlorrie <towerofnix@gmail.com>2018-05-31 00:01:05 -0300
commit98b2c1faa886a20695343b54bac1b2b6f85b3579 (patch)
tree20eca1142278496f09555ea7b3dae458573f2942 /index.js
parent12e2b37d59b29343e4543abbfb2416625a1ab79f (diff)
Seek controls
Diffstat (limited to 'index.js')
-rw-r--r--index.js54
1 files changed, 0 insertions, 54 deletions
diff --git a/index.js b/index.js
index 5f592df..6a3c8f8 100644
--- a/index.js
+++ b/index.js
@@ -15,61 +15,7 @@ process.on('unhandledRejection', error => {
   process.exit(1)
 })
 
-class InternalApp extends EventEmitter {
-  constructor() {
-    super()
-    this.player = null
-  }
-
-  async setup() {
-    this.player = await getPlayer()
-  }
-
-  async startPlaying(arg) {
-    this.player.playFile(await this.download(arg))
-  }
-
-  stopPlaying() {
-    this.player.kill()
-  }
-
-  seekAhead(seconds) {
-    this.player.seekAhead(seconds)
-  }
-
-  seekBehind(seconds) {
-    this.player.seekBehind(seconds)
-  }
-
-  togglePause() {
-    this.player.togglePause()
-  }
-
-  download(arg) {
-    return getDownloaderFor(arg)(arg)
-  }
-}
-
 async function main() {
-  /*
-  const internalApp = new InternalApp()
-  await internalApp.setup()
-
-  await internalApp.startPlaying('http://billwurtz.com/cable-television.mp3')
-  await new Promise(r => setTimeout(r, 2000))
-  internalApp.togglePause()
-  await new Promise(r => setTimeout(r, 1000))
-  internalApp.togglePause()
-  await new Promise(r => setTimeout(r, 2000))
-  internalApp.stopPlaying()
-  */
-
-  /*
-  for (const item of require('./flat.json').items) {
-    await internalApp.download(item.downloaderArg)
-  }
-  */
-
   const interfacer = new CommandLineInterfacer()
   const size = await interfacer.getScreenSize()