My Anime 3 (2 Viewers)

pur_berger

Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    52
    Vienna
    Home Country
    Austria Austria
    Don't know now if it's a global issue or MyAnime only - but when using 1.4 the "OK" button is not responding anymore. Tried with TV and Movies 7 Series too and there it seems to be fine.
     

    DutchAdept

    Portal Member
    March 30, 2012
    13
    11
    Home Country
    Netherlands Netherlands
    Don't know now if it's a global issue or MyAnime only - but when using 1.4 the "OK" button is not responding anymore. Tried with TV and Movies 7 Series too and there it seems to be fine.

    Are you sure the OK button doesn't work ?
    I can select series and menu items using the OK button without any problems, just playing files fails..
     

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    52
    Vienna
    Home Country
    Austria Austria
    Don't know now if it's a global issue or MyAnime only - but when using 1.4 the "OK" button is not responding anymore. Tried with TV and Movies 7 Series too and there it seems to be fine.

    Are you sure the OK button doesn't work ?
    I can select series and menu items using the OK button without any problems, just playing files fails..
    Sorry - should have been more clear - playing fails.
     

    lwerndly

    Portal Pro
    January 14, 2008
    702
    278
    Home Country
    Australia Australia
    Ok, I'll take a look to see if anything is broken
    https://code.google.com/p/jmm/issues/detail?id=437

    Seems the videodatabase object had some workover:

    ResumeOrPlay: System.MissingMethodException: Method not found: 'Int32 MediaPortal.Video.Database.VideoDatabase.GetMovieStopTimeAndResumeData(Int32, Byte[] ByRef)'.
    at MyAnimePlugin3.VideoHandler.GetTimeStopped(String fileName)
    at MyAnimePlugin3.VideoHandler.ResumeOrPlay(AnimeEpisodeVM episode) in C:\Projects\SVN\JMM\trunk\animeplugin3\MyAnimePlugin3\VideoHandler.cs:line 191

    Thanks, issue raised
    https://code.google.com/p/jmm/issues/detail?id=439
     

    DutchAdept

    Portal Member
    March 30, 2012
    13
    11
    Home Country
    Netherlands Netherlands
    As suspected (this is the new 1.3.100 databases.dll):

    MediaPortal.Video.Database.VideoDatabase.GetMovieStopTimeAndResumeData(ByVal Integer, ByRef Byte( ), ByVal Integer) As Integer

    Added integer returns BDTITLE.

    (b.t.w. many thanks for all your efforts!)
     
    Last edited:

    lwerndly

    Portal Pro
    January 14, 2008
    702
    278
    Home Country
    Australia Australia
    As suspected (this is the new 1.3.100 databases.dll):

    MediaPortal.Video.Database.VideoDatabase.GetMovieStopTimeAndResumeData(ByVal Integer, ByRef Byte( ), ByVal Integer) As Integer

    Added integer returns BDTITLE.

    (b.t.w. many thanks for all your efforts!)

    Damn, that means I'll need to do separate release for MP1.3 and MP1.4 now :(
     

    DutchAdept

    Portal Member
    March 30, 2012
    13
    11
    Home Country
    Netherlands Netherlands
    Damn, that means I'll need to do separate release for MP1.3 and MP1.4 now :(

    I have not looked at the MP code before and I'm a mediocre .NET coder at best, but here's my two cents anyway ;) :

    I'm sure there's a object that will return the current DLL version, so how about using that value to branch to the proper call (yes, a bit dirty programming, but since this is the only showstopper as far as I can see it should be allowed, right?). BD support can be added in due time...
     
    Last edited:

    lwerndly

    Portal Pro
    January 14, 2008
    702
    278
    Home Country
    Australia Australia
    I have not looked at the MP code before and I'm a mediocre .NET coder at best, but here's my two cents anyway ;) :

    I'm sure there's a object that will return the current DLL version, so how about using that value to branch to the proper call (yes, a bit dirty programming, but since this is the only showstopper as far as I can see it should be allowed, right?). BD support can be added in due time...

    Great idea, I'll do that
     

    DutchAdept

    Portal Member
    March 30, 2012
    13
    11
    Home Country
    Netherlands Netherlands
    I've grabbed your latest source and compiled it against the new 1.4 build (sorry, I already moved to MP1.4 and can't live without myAnime3..... and I'm not known for my patience :whistle: ).
    I found that aside the added return integer from the "GetMovieStopTimeAndResumeData " method, they also have removed "GUIToggleButtonControl " from the GUI.library.

    Impatient that I am, I changed all "GUIToggleButtonControl" references to "GUIbuttoncontrol" and added a dummy value to your videohandler.cs code:

    Code:
     int idBDindex = 0;
    			byte[] resumeData = null;
    			if ((idMovie >= 0) && (idFile >= 0))
    			{
    				return VideoDatabase.GetMovieStopTimeAndResumeData(idFile, out resumeData, idBDindex);
    			}
    			return 0;

    And yes: all is well now, I can play my anime yet again ! :D (although I had no time to asses the impact of the "togglebutton" to "button" change, so I may yet be unpleasantly surprised)
    But the good news is that beside these two issue's, your code received a clean bill of health by VisualStudio.

    Regards,

    Alex
     
    Last edited:

    Users who are viewing this thread

    Top Bottom