A power hour written in rust with Chromecast support
Branch: master
Clone or download
lopopolo Clean up chromecast DNS record parser
- make tests pass clippy
- tweak the nom parser
Latest commit 7361f1a Jan 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cast-client
doc
punchtop-audio
punchtop-playlist
punchtop-react
punchtop-webview
stream-util
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md

README.md

punchtop

punchtop is an audio game that runs a power hour using music on the local file system and streams to a Chromecast device.

Game

A power hour is a (drinking) game. During each 60-second round, a song is played. A change in music marks each new round.

Usage

To run punchtop, you must build it from source. Punchtop depends on:

  • nightly rust, which you can install using rustup
  • node
  • yarn

After you have installed the build dependencies, you can launch punchtop with debug logging via cargo:

RUST_BACKTRACE=1 RUST_LOG=cast-client=debug,punchtop=debug,rocket=info cargo run

or in a release build:

cargo build --release
RUST_LOG=info caffeinate -s ./target/release/punchtop-webview

Limitations / Known Bugs

  • Media directory may only be selected by modifying the source.
  • Chromecast device may only be selected by modifying the source.
  • App does not prevent system sleep via idle timeout.
  • [macOS] App does not shut down cleanly on quit.
  • [macOS] App does not shut down cleanly on SIGINT.
  • [macOS] App does not exit on game completion until webview has user activity.

Screenshots

Punchtop player and playback controls