-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options #15939
Conversation
Yes it is, and such a bump would make any fixes that need backporting to Leia tricky, so can we hold off breaking changes if possible until v18 is frozen. As a reminder when the first breaking change happens it will be a bump to 11.0.0 (with v11 covering all breaking changes during development phase rather than run-away number), and finally to 12.0.0 on release of v19. |
Yup, it can definitely wait some time. My thought was to wait for something more substantial to be the first breaking change. |
b0ac43d
to
f8b2c30
Compare
With the JSON-RPC version bump its about time for this to go in. |
Looking through the existing remote implementations, Kore, Yatse, and Chorus2 all use implicit options that are removed by this PR and will break on seeking with the seekbar. Kore and Yatse both seek by time with Chorus2 seeks by percentage with |
f8b2c30
to
62a61dc
Compare
@rmrector how should this be progressed? |
62a61dc
to
ae74b97
Compare
It can be merged when it's green. I spaced, I didn't mean to hold it past the new year. |
@DaveTBlake how are breaking changes for jsonrpc usually handled? |
Strictly (by definition in the schema itself) xbmc/xbmc/interfaces/json-rpc/schema/methods.json Lines 32 to 34 in 3a9c94d
a breaking change to the API requires a bump to the major version, however wanting to avoid version runaway during alpha only the first breaking change does that. Hence although this is a breaking change only the minor gets bumped as it is not the first breaking change. The major will then be bumped again to v12.0.0 for release of v19 - so releases are even numbers. Obviously we try to do braking changes early in the dev cycle. To help JSON consumers spot changes in the commit history of the build it is also good to include For Leia I also maintained a forum thread that summarized changes, but I have been a bit lax for v19 so far. |
So once this gets reviewed and approved it’s ok to go in. |
Rebase the JSON version number @rmrector then the button is yours |
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
@rmrector merging this pullrequest broke seeking with offical-kodi-remote (ios). for my personal branch i can revert it without (to me) obvious drawbacks, but was this intended and will be fixed later? (i doubt official-kodi-remote is under maintenance atm.) |
@howie-f is this the correct repo for the remote you are referring to: https://github.com/xbmc/Official-Kodi-Remote-iOS ? |
It was an intentional breaking change, and so it is up to JSON API consumers to adapt. This is problem for the iOS remote or any other unmaintained apps. You could question the wisdom of making a breaking chance to primarily simplify the schema and remove duplicated parameters, but that is what has happened. It also claims to fix issue #15914. |
@phunkyfish yeah, correct. installed through app-store. |
For now, I will also have to revert this patch on my Matix builds, as the kodi remote ios app seek functionality is something I use on daily basis. |
We also need to ping @Tolriq as Yatse users will soon complain about this change a lot. |
It's already fixed in Yatse beta, just not released due to Google issues ;) |
i think it‘s a legit change and let‘s keep in mind that matrix isn‘t even alpha yet. but i’d just rather test alpha in the living-room with my ios-remote. |
Not 5 years later (#6801) to avoid fixing a rare issue only one person have at the expanse of breaking nearly everyone using this, and without announcing a deprecation before. This is usually not the way to maintain a public API. I care about Kodi users and it's not a nice move, from Yatse point of view this is nice as it will make all users of no more supported remotes search alternatives that works. |
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
[jsonrpc] [breakingchange]remove ambiguous and duplicate Player.Seek options
Given xbmc/Official-Kodi-Remote-iOS#95, would it be sane for end-users wishing to have arrow key functionality within the official iOS app to simply revert this commit when compiling Matrix? Any unforeseen breakage by doing so? |
@graysky2 i‘m doing the revert on my living room branch and have not seen any breakage. but the correct fix needs to go to (unmaintained) official ios remote. |
Adapt to breaking change in the Kodi JSON-RPC protocol xbmc/xbmc#15939
Adapt to breaking change in the Kodi JSON-RPC protocol xbmc/xbmc#15939
Description
Remove implicit duplicate options
Leaving only the explicitly parameterized options (available since Kodi 15 Isengard)
Motivation and Context
This method's parameters are ambiguous with one of the duplicates. Removing it clears up the ambiguity and solves a reported issue #15914.
Removing the rest of the duplicates simplifies the schema and the code, slightly, with no loss of functionality.
How Has This Been Tested?
Manually.
Types of change
Checklist