Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port the mediaplayer mpris interface to mpris 2.2; fix #1912 #2552

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

ctrlaltca
Copy link
Contributor

This PR updates the mediaplayer module's MPRIS interface from version 1 to version 2.2 (https://specifications.freedesktop.org/mpris-spec/latest/)
Version 1 of the specification is considered obsolete and broken; all media players already updated to the new spec years ago.
Two dead mediaplayers got removed (Mozilla Songbird and BMPx).
This PR has been tested working with VLC, Clementine and Audacity.

A flaw has been found in the position/length handling: the variable holding the milliseconds value is an int, so it will report broken values for long files; from my tests it breaks after around 15 minutes. The fix is not contained in this PR since it requires a data type change in all the other interfaces, too.

@ctrlaltca ctrlaltca merged commit 05e13b4 into kvirc:master Aug 31, 2023
3 checks passed
@ctrlaltca ctrlaltca deleted the fix_1912 branch August 31, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants