Crates.io | mpris-nowplaying |
lib.rs | mpris-nowplaying |
version | 0.1.1 |
source | src |
created_at | 2023-08-14 20:55:28.268565 |
updated_at | 2023-10-25 16:45:53.450632 |
description | A websocket based MPRIS2 "now-playing" / status client. |
homepage | |
repository | https://github.com/msparkles/mpris-nowplaying |
max_upload_size | |
id | 944482 |
size | 49,620 |
A websocket based MPRIS2 "now-playing" / status client.
Main application is embedding a now-playing dock in your streams, but it isn't limited to that.
Written in Rust.
Default bound IP is 127.0.0.1:32100
Iunno, the Media Session doesn't seem to work for us, maybe it uses MPRIS1, we have no idea the difference.
We wanted to have a Now Playing thing in our stream (via OBS) aligned to what's playing in our media player.
Look in /examples
.
The returned message from the bound WebSocket address is similar to that of a Media Session JSON.
However, there's some additional information: (only marking additions!)
"mediaSession": {
"metadata": {
"length": u64, // unit: microseconds, the media's length in time
}
"position": u64 // unit: microseconds, the current playback position
}