GSOC 2012 - Proposal - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+---- Forum: GSoC 2012 Development (/forumdisplay.php?fid=161)
+---- Thread: GSOC 2012 - Proposal (/showthread.php?tid=126931)
Pages: 1 2
GSOC 2012 - Proposal - aniket - 2012-03-28 10:24
I'm a 4th year Bachelors Computer Science student at Indian Institute of Technology Roorkee. This is the first time I'm participating in GSOC, hope it's not too late to apply. I've used XBMC for a couple of years now, even developed some plugin for it. I've been interning the previous 2 summers, so didn't get a chance to get involved with GSOC.
Improved UPnP serving and client
The basic problem is to enhance the user experience for multiple clients by extend the existing XBMC libraries and adding more functionality. Users with multiple clients shall view a single consistent and up to date image of all the music and video database. Using JSON-RPC API the server can be updated of any action the user takes (such like, watch, bookmark etc.). The server can then update all the other clients related to that account, giving user a unified view.
How will I achieve this:
The first phase will be finding some efficient way of extending the existing UPnP server API to handle all relevant metadata. This will need some code modifications in the existing library which I will make sure doesn’t break anyone else’s work.
Next thing will be taking care of various platforms and input devices. Depending on which platform and device the instance of XBMC is running, there might be minor to major differences in code. Listen for relevant events from various input devices and make RPC call to update the server.
Third phase will be to use the 2-way communication to update other clients with the latest information. This part is to be done on the server side and similar to the second phase, needs to take care of the type of device. Client interface to decide
What will the project focus on:
The main aim of the project will be to cover all platforms and devices and keep all media status in sync with every other devices.
User: Users having XBMC instance running on multiple devices with a large database of music and videos can feel tension free about handling it and keeping it all in sync.
Developers: I plan on making a generic module that can be exploited by as many people as possible keeping future changes in mind. I do not intend to limit the code to a predefined set of functionality such as like, bookmark, rating etc. but intend keep everything expandable so that future needs may also be met. An easy set of functions so that anyone can understand and use them.
Extending the UPnP interface to accommodate the current needs of sharing more information over multiple clients.
Transparent send and receive of data, with user having option to view the history of changes.
Generic and streamlined set of functions that can be understood and used, and extended by anyone, if need arises.
What does it touch in XBMC:
It will touch the UPnP API codebase as more functionality needs to be added to it. JSON-RPC API may need to be extended if the need arises.
I believe knowledge of different platforms such as Windows, Linux and Android is needed beforehand. Knowledge about JSON and Remote Procedure Call handling is also required. EventClients and EventServer knowledge is also useful since they are what will trigger the RPCs. And finally knowledge of programming languages like Python, Java, C++, C# will be a must. An LIRC remote might be required, but since I have that already (from a project I did some time back), it should not be an issue.
How long have you been writing software for work/fun?
I have been writing software for more than 3 years now. I am proficient in Python, Java. C# and C++. I have some previous experience of developing XBMC plugins and scripts in python; here is the link for the same:
Oh I just realized this... Please ignore the poor code management , its such an old piece of code. It was my first experience with Django, XBMC and Git. I didn't even know the use of .gitignore then!! That's embarrassing...
Is this your first GSOC?
Have you contributed to XBMC or other FLOSS projects?
Yes. Here is the link:
I can provide more info about it via mail. There is another project, but it’s on the intranet in my institute.
In case of any disambiguation please do tell me. I have decent experience in video plugin and script development, so I might have got some technical details wrong. Once again, I hope its not too late...
RE: GSOC 2012 - Proposal - spiff - 2012-03-28 10:51
project proposals can still be registered; read here for how to register it officially.
in general; i like your idea and approach. i fear it might be a bit too big for a gsoc task, so maybe boil it down to some of the subtasks.
RE: GSOC 2012 - Proposal - aniket - 2012-03-28 12:02
(2012-03-28 10:51)spiff Wrote: project proposals can still be registered; read here for how to register it officially.Oh, sorry about that... I've done that now.
(2012-03-28 10:51)spiff Wrote: in general; i like your idea and approach. i fear it might be a bit too big for a gsoc task, so maybe boil it down to some of the subtasks.Umm... okay. Maybe I can split my project into the following:
I believe this is a pretty doable target for GSOC timeline.
Please tell me if there is something missing or wrong here... Any suggestions welcomed...
RE: GSOC 2012 - Proposal - Montellese - 2012-03-28 13:02
(2012-03-28 12:02)aniket Wrote:
As an FYI on the JSON-RPC work concerning updating data in xbmc's database: Currently it is not possible to update any data through JSON-RPC but I have already done the necessary work to provide this functionality for movies, tvshows, episodes, musicvideos, artists, albums and songs. I just need to update & rebase that work and then I will present it in a pull request on github for merging. So some of the work on the JSON-RPC side in xbmc is already there. This however does not include any logic to trigger updates in other xbmc installations. It just provides the API to be able to update fields/attributes (like playcount, rating, lastplayed etc) of media items in xbmc's database.
RE: GSOC 2012 - Proposal - aniket - 2012-03-28 13:26
That's nice, then my second part is reduced to using the JSONRPC.NotifyAll function, I guess, if it can update all the related clients.
RE: GSOC 2012 - Proposal - spiff - 2012-03-28 14:23
that's better. point is having some subgoals so we can quantify it a bit. e.g. 2 out of 3 tasks finished etc.
RE: GSOC 2012 - Proposal - aniket - 2012-03-29 07:27
(2012-03-28 14:23)spiff Wrote: that's better. point is having some subgoals so we can quantify it a bit. e.g. 2 out of 3 tasks finished etc.
As for the UPnP metadata fields, I was going through XBMC wiki UPnP page, and found out about Platinum UPnP SDK. It says that the server code is written using this SDK. If this is so, then I can modify the existing (or add new) XBMC MediaServer functions try to improve the information sent by including the required metadata mentioned earlier. Do tell me if I am on the right track here?
Also what else would you like me to break down into subgoals as a part of the project?
RE: GSOC 2012 - Proposal - jmarshall - 2012-03-29 07:47
Yes - most of that is done in UPnP.cpp - take a nosy through and see how it's setup thus far. There's several fields that aren't yet transferred over correctly but are available in the library (and likely fit at least some standard upnp field name).
RE: GSOC 2012 - Proposal - aniket - 2012-03-29 12:14
Hmm.. I did that and from what I could see, there are lots of fields in VideoInfoTag and MusicInfoTag classes but only some of them are attached to the PLT_MediaObject in PopulateObjectFromTag function. Whereas nothing is attached for photos. This is done while building a media object in BuildObject function. CUPnP class then uses this function in UpdateState call to update the state of the media/folder objects, which is done every 500ms.
I guess what needs to be done is to insert the remaining tag info in PLT_MediaObject and then use it to update the server and clients.
Again, is this right? Also, can you elaborate what you mean when you say, fields aren't transferred over correctly, is there a bug or something else?
Thnx for the pointer...
RE: GSOC 2012 - Proposal - pecinko - 2012-03-29 18:20
I was just curious if this will be more like extension of existing functionality in XBMC or a separate optional application/daemon that could eventually be made to run on NAS?
I.e. will this be optional standalone "library backend" or this rather aims to provide XBMC to XBMC "metadata talk pipe".