Posts: 703
Joined: May 2009
Reputation:
2
erhnam
Team-XBMC Live Developer
Posts: 703
Question; now AE is in, how hard would it be to build functionality to get a list with audio devices and default to a new one?
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Getting the list of audio devices would probably be easy/easier but changing the setting is still as hard as it was before. The problem is that the whole GUI settings stuff is built to be changed through the GUI and not through some call in the rest of the code. So just changing the value of the setting itself won't do anything to the rest of XBMC. It has to somehow work through all the appropriate code in CGUISettings/CGUIWindowSettingsCategory which is not publicly exposed to the rest of the code.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Hm that error means that you didn't provide the correct Content-Type but as you explicitly set it to application/json it should be fine. I'll have to give it a try later on and take a look at the actually sent data with Wireshark.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Only gave it a quick spin on win32 and the HTTP request received by XBMC contains "Content-Type: application/x-www-form-urlencoded" and not application/json. So something must be wrong with the wget call.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 794
Joined: Apr 2011
Reputation:
16
Mizaki
Posting Freak
Posts: 794
2012-06-15, 23:22
(This post was last modified: 2012-06-15, 23:26 by Mizaki.)
Tested it and single quotes works fine for me in Linux. The
Posts: 17,402
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,402
Thanks for looking but it's the same error. Maybe it's something to do with the OpenELEC version I'm using.
Posts: 794
Joined: Apr 2011
Reputation:
16
Mizaki
Posting Freak
Posts: 794
I see it's been discussed somewhat but is a resume option and/or a "play from" param with player.open worth a FR? I guess currently it's a player.open then player.seek deal?
Ta.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Hm good question on the "total" value. I actually haven't looked at it. Might be that it will need some extra query to retrieve the maximum number of items. Thanks for bringing it up.
Yes my "vision" is to add a "filter" parameter to all the FooLibrary.GetBar methods which will take an object of the same format as smartplaylists are stored, just in JSON and not in XML. That would provide maximum flexibility while still making sure that nobody has to write custom SQL queries.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.