{"id":13822817,"url":"https://github.com/Mange/mpris-rs","last_synced_at":"2025-05-16T17:32:12.066Z","repository":{"id":44876628,"uuid":"109198609","full_name":"Mange/mpris-rs","owner":"Mange","description":"Idiomatic MPRIS D-Bus interface library for Rust","archived":false,"fork":false,"pushed_at":"2024-06-15T10:49:13.000Z","size":440,"stargazers_count":68,"open_issues_count":7,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-18T09:59:10.898Z","etag":null,"topics":["d-bus","dbus","mpris","mpris-ctl","rust-library"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mange.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-02T00:26:53.000Z","updated_at":"2024-07-06T09:33:43.000Z","dependencies_parsed_at":"2024-03-23T23:32:07.628Z","dependency_job_id":"e99b3537-abf3-4d08-b764-401d9f059073","html_url":"https://github.com/Mange/mpris-rs","commit_stats":{"total_commits":202,"total_committers":10,"mean_commits":20.2,"dds":"0.18316831683168322","last_synced_commit":"b8189060450e9719189240ab085a2c76146ac219"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mange%2Fmpris-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mange%2Fmpris-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mange%2Fmpris-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mange%2Fmpris-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mange","download_url":"https://codeload.github.com/Mange/mpris-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213893314,"owners_count":15653524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["d-bus","dbus","mpris","mpris-ctl","rust-library"],"created_at":"2024-08-04T08:02:19.116Z","updated_at":"2024-08-04T08:09:04.974Z","avatar_url":"https://github.com/Mange.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# mpris\n\n\u003e A Rust library for dealing with [MPRIS2][mpris2]-compatible players over\n\u003e D-Bus.\n\n[![Crates.io][crate-badge]][crate] [![Documentation][docs-badge]][docs] [![Build Status][ci-badge]][ci] ![Actively developed][maintenance-badge]\n\n## What is MPRIS2?\n\n\u003e The Media Player Remote Interfacing Specification is a standard D-Bus\n\u003e interface which aims to provide a common programmatic API for controlling\n\u003e media players.\n\u003e\n\u003e It provides a mechanism for discovery, querying and basic playback control of\n\u003e compliant media players, as well as a tracklist interface which is used to\n\u003e add context to the active media item.\n\nFrom [*About*, in the MPRIS2 specification][mpris-about].\n\nBasically, you can use it to control media players on your computer. This is\nmost commonly used to build media player applets, UIs or to pause other players\nbefore your own software performs some action.\n\nYou can also use it in order to query metadata about what is currently playing,\nor *if* something is playing.\n\n## How to use\n\n```rust\nuse mpris::PlayerFinder;\n\n// Pauses currently playing media and prints metadata information about that\n// media.\n// If no player is running, exits with an error.\nfn main() {\n  let player = PlayerFinder::new()\n    .expect(\"Could not connect to D-Bus\")\n    .find_active()\n    .expect(\"Could not find any player\");\n\n  player.pause().expect(\"Could not pause\");\n\n  let metadata = player.get_metadata().expect(\"Could not get metadata for player\");\n  println!(\"{:#?}\", metadata);\n}\n```\n\nSee the `examples` directory for more examples.\n\n## License\n\nCopyright 2017-2022 Magnus Bergmark\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n[mpris2]: https://specifications.freedesktop.org/mpris-spec/latest/\n[mpris-about]: https://specifications.freedesktop.org/mpris-spec/latest/#About\n[docs]: https://docs.rs/mpris/\n[docs-badge]: https://docs.rs/mpris/badge.svg\n[crate]: https://crates.io/crates/mpris\n[crate-badge]: https://img.shields.io/crates/v/mpris.svg\n[maintenance-badge]: https://img.shields.io/badge/maintenance-actively--developed-brightgreen.svg\n[ci-badge]: https://travis-ci.org/Mange/mpris-rs.svg?branch=master\n[ci]: https://travis-ci.org/Mange/mpris-rs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMange%2Fmpris-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMange%2Fmpris-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMange%2Fmpris-rs/lists"}