MP2 Webservices | Page 2

Discussion in 'Plugin Development' started by Mike Lowrey, July 30, 2011.

  1. DieBagger
    • Premium Supporter

    DieBagger Retired Team Member

    Joined:
    September 11, 2007
    Messages:
    2,516
    Likes Received:
    1,257
    Gender:
    Male
    Occupation:
    Android Developer
    Location:
    Austria
    Ratings:
    +1,302 / 0
    Home Country:
    Austria Austria
    Show System Specs
    We will probably just adapt MpExtended for MP2... Especially when it comes to video streaming/transcoding it would be a waste of everones time to develop this twice...

    Also: This would mean that existing clients (aMPdroid, WebMP,...) can be used with MP2 also without any changes needed.

     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,086
    Likes Received:
    4,766
    Ratings:
    +6,825 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Yes this sounds good. So I assume the important part is the communication with the MP2 media library
     
  4. Mike Lowrey

    Mike Lowrey Portal Pro

    Joined:
    February 4, 2009
    Messages:
    638
    Likes Received:
    125
    Location:
    Berlin
    Ratings:
    +125 / 0
    Home Country:
    Germany Germany
    Yeah, that's what i asked in another thread ;)
     
  5. DieBagger
    • Premium Supporter

    DieBagger Retired Team Member

    Joined:
    September 11, 2007
    Messages:
    2,516
    Likes Received:
    1,257
    Gender:
    Male
    Occupation:
    Android Developer
    Location:
    Austria
    Ratings:
    +1,302 / 0
    Home Country:
    Austria Austria
    Show System Specs
    Yeah, in MP1 we directly read from the DB and oxan has optimized the linq queries for that... I think he can answer best on what we would need for MP2.
     
  6. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,086
    Likes Received:
    4,766
    Ratings:
    +6,825 / 11
    Home Country:
    Germany Germany
    Show System Specs
    The MP2 media library is very flexible, i.e. it automatically adds new DB tables for new metadata aspects. Also tables are auto-renamed when an Aspect changes it's guid due to content changes:
    i.e. we had "Actor" not defined as m:n and changed this. With this changes we also assigned a new Aspect GUID, this resulted into a new db-table with "_1" appended.

    I only want to say that Albert put a lot of logic into the ML and I recommend not to access DB directly but use the ML library interfaces.
     
  7. Mike Lowrey

    Mike Lowrey Portal Pro

    Joined:
    February 4, 2009
    Messages:
    638
    Likes Received:
    125
    Location:
    Berlin
    Ratings:
    +125 / 0
    Home Country:
    Germany Germany
    I haven't had a look at the ML library but with such a dynamic layout it seems nearly impossible to map these data on a fixed api like the one of MPExtended.
     
  8. DieBagger
    • Premium Supporter

    DieBagger Retired Team Member

    Joined:
    September 11, 2007
    Messages:
    2,516
    Likes Received:
    1,257
    Gender:
    Male
    Occupation:
    Android Developer
    Location:
    Austria
    Ratings:
    +1,302 / 0
    Home Country:
    Austria Austria
    Show System Specs
    KK, like I said oxan really did most of the work there but what we are currently doing is creating the sqlite query from the linq query (get shows 20-30 sort tite order asc). I'm sure we will find a solution for this though... ;)

    Some other issues that come to mind:
    - Where to put the upnp/dlna code.
    - Run MpExtended as standalone service or MP2 server plugin (what about clients)
    - Combine User-Management of MpExtended/MP2 (when there is one in MP2)
     
  9. Oxan
    • Premium Supporter

    Oxan Retired Team Member

    Joined:
    August 29, 2009
    Messages:
    1,730
    Likes Received:
    1,024
    Gender:
    Male
    Ratings:
    +1,115 / 2
    Home Country:
    Netherlands Netherlands
    Well, the way we access the databases doesn't really matter. It would be nice if we could just use the library code from MP2 (which unfortunately wasn't possible with MP1). MPExtended uses a plugin architecture for the media libraries, so in the best case we only need some wrapping code.

    I'm personally not really interested in implementing MP2 support in MPExtended (yet), but I'd be more than happy to help someone do it.
     
  10. Oxan
    • Premium Supporter

    Oxan Retired Team Member

    Joined:
    August 29, 2009
    Messages:
    1,730
    Likes Received:
    1,024
    Gender:
    Male
    Ratings:
    +1,115 / 2
    Home Country:
    Netherlands Netherlands
    I don't expect it to be a bigger problem than the changing databases in MP1.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!