[PR #43] [MERGED] Add cross-platform media control support #595

Closed
opened 2026-03-02 23:48:58 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/43
Author: @aome510
Created: 5/28/2022
Status: Merged
Merged: 5/28/2022
Merged by: @aome510

Base: masterHead: add-media-control-support


📝 Commits (10+)

  • 7994514 add souvlaki
  • b62a25d rename spric module to streaming and update logging messages
  • e091fd6 add media-control feature
  • 89ba0bb add winit
  • 62ea84c implement a base media event watcher code
  • e7e7662 handle play,pause,next,prev media control events
  • 717eaec add update_control_metadata
  • 971bc40 add a hack to show track metadata on startup
  • 64b370d add track album's image URL as cover_url metadata
  • 29eabaa cleanup

📊 Changes

18 files changed (+753 additions, -98 deletions)

View changed files

📝 .github/workflows/ci.yml (+1 -1)
📝 Cargo.lock (+500 -17)
📝 spotify_player/Cargo.toml (+5 -2)
📝 spotify_player/src/auth.rs (+4 -4)
📝 spotify_player/src/client/handlers.rs (+9 -9)
📝 spotify_player/src/client/mod.rs (+22 -22)
📝 spotify_player/src/client/spotify.rs (+4 -4)
📝 spotify_player/src/config/keymap.rs (+1 -1)
📝 spotify_player/src/config/mod.rs (+1 -1)
📝 spotify_player/src/config/theme.rs (+1 -1)
📝 spotify_player/src/event/mod.rs (+6 -6)
📝 spotify_player/src/main.rs (+54 -13)
spotify_player/src/media_control.rs (+116 -0)
📝 spotify_player/src/state/mod.rs (+3 -3)
📝 spotify_player/src/state/player.rs (+3 -2)
📝 spotify_player/src/streaming.rs (+10 -5)
📝 spotify_player/src/token.rs (+10 -4)
📝 spotify_player/src/ui/mod.rs (+3 -3)

📄 Description

Changes

  • added cross-platform media control support
    • added media_control module
    • added souvlaki and winit crates (under media-control feature)
  • capitalized the first character of a log message
  • renamed spric to streaming

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/43 **Author:** [@aome510](https://github.com/aome510) **Created:** 5/28/2022 **Status:** ✅ Merged **Merged:** 5/28/2022 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `add-media-control-support` --- ### 📝 Commits (10+) - [`7994514`](https://github.com/aome510/spotify-player/commit/799451423989cf715367f3042a54c5437e24b9ca) add souvlaki - [`b62a25d`](https://github.com/aome510/spotify-player/commit/b62a25d395eab35c0ac7b4c2d7a60ee07877aa19) rename spric module to streaming and update logging messages - [`e091fd6`](https://github.com/aome510/spotify-player/commit/e091fd6a46a4a6bcb4d1ba2e427dd5755db08348) add `media-control` feature - [`89ba0bb`](https://github.com/aome510/spotify-player/commit/89ba0bbfa07801b36eb2663404ec8d98d2c31796) add `winit` - [`62ea84c`](https://github.com/aome510/spotify-player/commit/62ea84c8d5c2c60c0d964b57d6a9c92e732c622d) implement a base media event watcher code - [`e7e7662`](https://github.com/aome510/spotify-player/commit/e7e76623d26bb70fea83ef93f9a7f846c147bf6b) handle play,pause,next,prev media control events - [`717eaec`](https://github.com/aome510/spotify-player/commit/717eaec087d378e2b1d88e178cc8fdc568b92c96) add `update_control_metadata` - [`971bc40`](https://github.com/aome510/spotify-player/commit/971bc404891768c5dc89cc1573736aa7e89d4d5b) add a hack to show track metadata on startup - [`64b370d`](https://github.com/aome510/spotify-player/commit/64b370d6962bdf63a0b7d68d7a75150d9e718f01) add track album's image URL as `cover_url` metadata - [`29eabaa`](https://github.com/aome510/spotify-player/commit/29eabaa3133f505374be7f8f7d50bd8135e5dd5d) cleanup ### 📊 Changes **18 files changed** (+753 additions, -98 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+1 -1) 📝 `Cargo.lock` (+500 -17) 📝 `spotify_player/Cargo.toml` (+5 -2) 📝 `spotify_player/src/auth.rs` (+4 -4) 📝 `spotify_player/src/client/handlers.rs` (+9 -9) 📝 `spotify_player/src/client/mod.rs` (+22 -22) 📝 `spotify_player/src/client/spotify.rs` (+4 -4) 📝 `spotify_player/src/config/keymap.rs` (+1 -1) 📝 `spotify_player/src/config/mod.rs` (+1 -1) 📝 `spotify_player/src/config/theme.rs` (+1 -1) 📝 `spotify_player/src/event/mod.rs` (+6 -6) 📝 `spotify_player/src/main.rs` (+54 -13) ➕ `spotify_player/src/media_control.rs` (+116 -0) 📝 `spotify_player/src/state/mod.rs` (+3 -3) 📝 `spotify_player/src/state/player.rs` (+3 -2) 📝 `spotify_player/src/streaming.rs` (+10 -5) 📝 `spotify_player/src/token.rs` (+10 -4) 📝 `spotify_player/src/ui/mod.rs` (+3 -3) </details> ### 📄 Description ## Changes - added cross-platform media control support - added `media_control` module - added `souvlaki` and `winit` crates (under `media-control` feature) - capitalized the first character of a log message - renamed `spric` to `streaming` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:48:58 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#595
No description provided.