Skip to content

A Versatile Web-Based Audio Player for Presenting Scientific Results

License

Notifications You must be signed in to change notification settings

Curucail/trackswitch.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trackswitch.js

Screenshot

Installation

This tool can be installed using

npm install trackswitch

alternatively you can manually download and include dist/css/trackswitch.min.css and dist/js/trackswitch.min.js.

Whats included

dist/
├── css/
│   ├── trackswitch.min.css
└── js/
    ├── trackswitch.js
    └── trackswitch.min.js

Citation

If you use this software in a scientific publication, please make sure to cite the following publication

Werner, Nils, et al. "trackswitch.js: A Versatile Web-Based Audio Player for Presenting Scientific Results." 3rd web audio conference, London, UK. 2017.

@inproceedings{werner2017trackswitchjs,
  title={trackswitch.js: A Versatile Web-Based Audio Player for Presenting Scientific Results},
  author={Nils Werner and Stefan Balke and Fabian-Rober Stöter and Meinard Müller and Bernd Edler},
  booktitle={3rd web audio conference, London, UK},
  year={2017},
  organization={Citeseer}
}

Examples

Configuration

See configuration examples.

Usage scenarios

See examples.

Keyboard Shortcuts

trackswitch.js includes comprehensive keyboard shortcuts for controlling playback.

Playback Controls

  • Space - Play / Pause
  • Escape - Stop playback and reset to beginning
  • R - Toggle repeat mode

Seeking

  • ← / → - Seek backward/forward 2 seconds
  • Shift + ← / → - Seek backward/forward 5 seconds
  • Home - Jump to start

Volume

  • ↑ / ↓ - Increase/decrease volume by 10%

When multiple players exist on a page, the last-clicked player receives keyboard input.

Development

npm install
npm run build

This will compile Sass, concatenate files, and minify CSS/JS into the dist/ folder.

Build Scripts

  • npm run build - Full build (clean, compile, minify)
  • npm run build:css - Compile and minify CSS only
  • npm run build:js - Concatenate and minify JS only
  • npm run clean - Remove dist/ folder

About

A Versatile Web-Based Audio Player for Presenting Scientific Results

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.5%
  • CSS 21.4%
  • Sass 1.1%