Posts: 3,077
Joined: Jun 2009
Well yes WAL does not work over network so deal breaker
Posts: 4,061
Joined: Oct 2007
Reputation:
90
zag
Team-Kodi Member
Posts: 4,061
Is it possible to offer JSON-RPC access as an alternative connection so it can go into the official repo.
At least then if devs can see how slow it is, they might be encouraged to look for solutions.
Posts: 429
Joined: Oct 2008
Reputation:
18
Well, the #1 problem is you cannot do an 'add' with JSON-RPC - we were doing a nasty hack with getting around this with fake .strm files in our early versions, but that was really slow too.
null_pointer is extending JSON-RPC to include the features we need, at least for movies, then we will publish a test case. My gut feeling is it will be do-able to get it acceptably fast - then it will just be a matter of getting the pull request accepted.
If someone really wants to see the difference, you can go back to our initial release using JSON-RPC and see - but I don't really think there is much point to be honest.
xnappo
Posts: 4,061
Joined: Oct 2007
Reputation:
90
zag
Team-Kodi Member
Posts: 4,061
Glad to hear it, There's nothing like having a real world speed test and comparison to get developers interested.
Posts: 429
Joined: Oct 2008
Reputation:
18
2015-09-18, 15:24
(This post was last modified: 2015-09-18, 15:28 by xnappo.)
Yes, that PR isn't exactly what we needed anyway. I'll be helping null_pointer with the test case this weekend - we'll see how far we get. Note that we aren't going to publish the test case and say 'okay, now go fix it' - we intend to help with optimization.
xnappo
Posts: 247
Joined: Oct 2011
Reputation:
11
it looks like writing to the DB is slow, I will look further when I have finished the last two endpoints (seasons and episodes) as to why it might be slow.
I initially though the slowness was due to opening and closing DB connections and it still might be but actually writing to the DB is a little slow, we are using transactions in a few places, this might be one cause, will need to investigate.
Posts: 58
Joined: Mar 2006
Reputation:
1
Hi guys,
Pardon the intrusion. I am trying to help out with the CinemaVision add-on by putting some actions together to share with the masses.
I have been running into issues which, at this time, I attribute to lack of understanding of the inner workings.
The actions seem to take JSON, but it doesn't quite behave the way you'd think and my REST calls are failing.
Is there a place where I could look at API docs or something similar for these scripts so I can understand them better?
Intel Core i7 3.3Ghz | GTX 1660 | Windows 1909 | 8GB | 32TB RAID1
138" 2.35:1 Elite Lunette Curved Screen | Epson 6050ub Projector | Marantz SR-6014 | Emotiva XPA-11
Posts: 429
Joined: Oct 2008
Reputation:
18
2015-09-24, 15:57
(This post was last modified: 2015-09-24, 16:06 by xnappo.)
Hi Montellese - that sounds a lot like what we have implemented in the addon, so this is definitely worth pursuing in parallel to null_pointer's investigations. We initially query for all the data, then receive change sets from there on out.
We already have a translation layer between the Emby API and Kodi API in Python of course.
Can you point me to the UPnP importer?
xnappo
Posts: 429
Joined: Oct 2008
Reputation:
18
Hi Montellese,
We actually offer two playback methods. In the first we populate the path with a plugin link with a 'play' argument - this is needed for things like transcoding when remote. The second method we just populate the direct path - this is mostly just used for very low end devices like the original Pi where just launching an addon at all is a little laggy.
So do you definitely see these importers as being C code compiled into the Kodi source?
xnappo
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Not necessarily in the Kodi source and also not necessarily in C/C++ but for now it was easiest to make use of the existing UPnP functionality in Kodi which is written in C++. I plan to turn importers into binary addons so that they can be developed outside of Kodi's source if necessary. Adding a bridge for python addons could be a possibility as well.
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.