Plugin: MP2Extended (1 Viewer)

johanj

MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Ignore my last reply. I missed changing the port from 4322 to 4323 so it was actually MPExt. for MP1 that was used on my dev laptop in my latest test:oops:. The stacktrace is from MPExt. 1 and not our app. But that also mean that browsing pictures might not work, will check on Sunday.
     
    Last edited:

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Haha, okay that explains a lot :D
    Don't worry I try to test myself as good as I can. I installed Android Studio yesterday, but unfortunately the AMPdroid src code is quite old 0.9 compared to 1.1.3 (I think). I disabled the WindowId in the status update and now the WifiRemote works also in AMPdropid. The debugging is a pain, but I try to get the playFile command working :)
    And I did some speed improvements to some API calls.

    So have a nice Weekend and thank you sooo much for your patients. It is really really hard to get it right without an and proper Test Environment :(
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    The playFile command never worked as it should for me so I only use playlist commands and the play media using mpextnded information, the one where one need to fetxh mediainfo from mpext. Im not sure that thai wifiremote command is documented, will check asap.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    The playFile command never worked as it should for me so I only use playlist commands and the play media using mpextnded information, the one where one need to fetxh mediainfo from mpext. Im not sure that thai wifiremote command is documented, will check asap.

    Haha, okay :) But I had to implement it for Ampdroid anyway.
    I've just got my first VideoStream to Ampdroid. I will make a little break now, but continue later, stay tuned ;)
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Got a few minutes, wife running late....But soon away until Sunday evening

    So this is what we use for playing a movingpic move, there because of legacy I guess
    self.send({Type: "movingpictures", Action: "playmovie", MovieId: parseInt(MovieId)});

    Then this uggly hack is there for most other items:
    self.send({Type: "playlist", PlaylistAction: "clear", PlaylistType: playlistType});
    setTimeout(function() {
    self.send({Type: "mpext", Action: "enqueue", ItemId: id, MediaType: parseInt(mediaType), ProviderId: parseInt(provider), StartPosition: 0, PlayInfo: playInfo});
    }, 50);
    setTimeout(function() {
    self.send({Type: "playlist", PlaylistAction: "play", PlaylistType: playlistType, Index: 0});
    }, 100);

    This should work but I don't remember why it's not:
    self.send({Type: "mpext", Action: "play", ItemId: id, MediaType: parseInt(mediaType), ProviderId: parseInt(provider), StartPosition: 0, PlayInfo: playInfo});

    where the playinfo is what you get from GetExternalMediaInfo

    Nice with streaming, love to test that as well. Although the MAS/TAS and play parts are more important for me personally
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Thanks for posting all these details (y) It is very helpful!

    You just have to remove the parseInt() around the id's because MP2 uses GUID, but I think you know that already :)

    Nice with streaming, love to test that as well. Although the MAS/TAS and play parts are more important for me personally
    If I would use such Apps, TAS would be the most important for me, but I needed something else to do, just implementing these API functions gets boring after a few hours :D
    Yesterday I added some more TAS functions, so it is wip ;)

    Have a nice weekend!
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    @johanj
    had you some time to test the latets version? I made quite some progress. Streaming looks already pretty decent and in TAS the EPG should work. Also I get nothing in AMPdroid, but tehre are no Exceptions from AMPdroid :/
    But again the SlimTv Interfaces need Extension >_> So I can deliver all the information yet...
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    Sounds good. Too much at work the last days, barely been home. Hope I can test tomorrow evening.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    What exactly do you need?
    • SeriesInformation -> saw already the branch (y)
    • In IChannelGroup the information if the group is Tv or Radio, SortOrder
    • In IProgramm: Classifictaion from Mediaportal.TV.Server.TVDatabase.Entities.Program, OriginalAirDate, ParentalRating, StarRating
    • In IProgrammRecordingStatus: HasConflict, All IsRecordingX
    • IChannel: EpgHasGaps, FreeToAir, ExternalId, GrabEpg, GroupMaps, LastGrabTime, TimesWatched, TotalTimneWatched, VisibleInGuide

    I already checked it, it is basically extending the interfaces and changing the TvEntityExtension.cs No extra querys nothing, just exposing the information :)
    I could do it today, I will create a branch based on dev and extend the interfaces? I saw that you created a new interfcae for exposing the seriesInfomration, but I think it is not needed for all above?!
     

    Users who are viewing this thread

    Top Bottom