0.1.0 • Published 9 months ago

slidev-addon-slidepods v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

šŸŽ§ SlidePods – Control Slidev with Your Earbuds!

Inspired by the amazing headphone-morse-transmitter project, SlidePods leverages the navigator.mediaSession API to listen for headphone button presses. These inputs are then mapped to control your Slidev presentation šŸš€.

In short, you can use your AirPods or other audio control devices to navigate forward or backward through your slides.

šŸŽ„ Video Demo

šŸš€ Getting Started

  1. Install the plugin šŸ“¦
npm install slidev-addon-slidepods
  1. Add the plugin to your Slidev configuration šŸ’„
---
addons:
    - slidev-addon-slidepods
---

šŸŽ‰ You're all set! Now you can control your slides by tapping on your earbuds!

šŸ”§ How It Works

  • Single tap šŸŽÆ go to the next slide ā­ļø.
  • Double tap šŸŽÆ go to the previous slide ā®ļø.

Tip: Due to restrictions in Chrome or other browsers, automatic audio playback doesn't always work. Therefore, you'll need to manually click the play button before starting your presentation.

Some headphones stop listening for click actions when removed from your ears. You'll need to cover the sensor area with your finger for them to continue working.

šŸ’» Compatibility

BrowserSupported šŸŽ‰
Chrome (v76+)āœ…
Firefox (v71+)āœ…
Edge (v79+)āœ…
SafariāŒ (not yet!)

Enjoy your next presentation! šŸŽ‰šŸ‘‚šŸ–±ļø

0.1.0

9 months ago