kirtan-shah / nowplaying-cli

macOS command-line utility for retrieving currently playing media
GNU General Public License v3.0
148 stars 9 forks source link

Feature: 'seek' subcommand to navigate playback #20

Closed Stealthii closed 4 months ago

Stealthii commented 4 months ago

This adds a new subcommand 'seek', taking a number (double) in seconds of the desired target seek time.

nowplaying-cli seek 60 # Seeks 1 minute into any currently playing/paused media

This makes use of the MRMediaRemoteSetElapsedTime function which completes after media information has been retrieved, so the early termination has been updated to handle this case.

Tested with TIDAL, Chrome, and VLC.


This PR additionally adds a basic Github Actions workflow to build, run, and archive the artifact on macOS 11 through 14. As Github Actions are not currently enabled for this repo, an example of them running can be seen here: https://github.com/Stealthii/nowplaying-cli/actions/runs/8713583230

After this is merged they will run against the main branch, and any open PRs.

kirtan-shah commented 4 months ago

This looks great, thank you! I like the idea of archiving the github actions builds rather than relying on an upload from a "random" computer (even if it's my own)