Plugin: MP2Extended (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    @FreakyJ
    I made a lot of changes in the TranscodingService (not pushed jet) and wanted to test them with MP2E. How do I do this? I tried a VM with aMProid 1.1.3 but I don't seem to get any stream request from it when I try to play a movie. I also tried an emulation in android studio with the latest source but seems to be an old version that is not using MPE.
    But you get all the other information? I mean you can browse trhough your movies and TvShows?
    I also tested streaming with Android x86 in a VM and using AMPdroid from the google play store (free edition). Set the debug level to "All" (take a look into the Wiki for that). And it should show you also the Debug messages. I log every request coming to MP2Extended as Debug.
    Also you can try to open the links in the browser, it is pretty straigh forward. The Call will return a URL and you can put it into VLC. Using AMPdroid I actually used the IOS profiles. So just add andoid to the targets. But I think the android profiles should work, too.
    Try also to call the URL from inside the VM to see if it has connection to the Server (but it should if you came to the streaming menu^^).
    You can get the IDs by using various other API calls. I made myself a samll txt file with IDs for TvShows, TvEpisodes, Movies etc. One ID for each to make tesing easy.

    Doesn't sound easy but I don't know why it doesn't work for you right now. I just know that it worked here, I know not very helpful^^

    But great that you are working on the transcoding service, really really thank you (y)

    @johanj
    I haven't downlaoded the DB yet, was a bussy day today. I just wanted to quikly answere Hensos question so that he can continue :) Will downlaod it tomorrow.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    832
    Home Country
    Denmark Denmark
    I just know that it worked here, I know not very helpful^^
    I tried with an Android 4.4 VM and everything else seemed to work except for no stream requests. I have now tried with an Android 4.3 and now I got the InitStream and StartStreamWith... commands so that seems to work now. I still couldn't stream though but then I found out the URL returned from the StartStreamWith... was returning a hardcoded URL. Have you pushed your latest changes? I will generate the correct URL, but if you haven't pushed the latest changes please do if possible.

    EDIT: OK, I got it working now. Should I work on the streaming part and maybe also some of the profile part? Can I push to your git repos?
     
    Last edited:

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    47
    Home Country
    Sweden Sweden
    @FreakyJ Don't worry, I haven't had the time to work on this either. But I checked the how the streaming url is combined. It should set both audio and subs if those exist in mediainfo and that these have been selected in MPiV( 0 index is default)
    mediaInfo.SubtitleStreams
    mediaInfo.AudioStreams

    The fallback is to skip &audioId and/or &subtitleId if the above information is missing. Then MPExt. uses the default subtitles and/or audio. I prefer if MP2Ext would work in the same way. I will of course debug and check why it fails in this case.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    832
    Home Country
    Denmark Denmark
    @FreakyJ
    There are so many similarities between DLNA branch and this branch, wouldn't it make sense to merge the 2 branches? Yours is the newest so maybe if you created a new branch with that, I could merge the DLNA branch into it? Currently I have keep both branches in sync if I edit the TranscodingService. :cry:
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I have now tried with an Android 4.3 and now I got the InitStream and StartStreamWith... commands so that seems to work now.
    very strange... but hey, it works now^^

    I still couldn't stream though but then I found out the URL returned from the StartStreamWith... was returning a hardcoded URL.
    Noooo, I don't do :LOL:
    Code:
    // TODO: Return the proper URL
          return new WebStringResult { Result = "http://192.168.178.26:26405/MPExtended/StreamingService/stream/RetrieveStream?identifier=" + identifier };

    yeah, forgot something there...

    I will generate the correct URL, but if you haven't pushed the latest changes please do if possible.
    I pushed the latest changes, huge commit^^

    Should I work on the streaming part and maybe also some of the profile part? Can I push to your git repos?
    That would be nice. So I won't touch the streaming part and focus on the API functions, that is pretty much self contained (just adding new files and register them)

    There are so many similarities between DLNA branch and this branch, wouldn't it make sense to merge the 2 branches? Yours is the newest so maybe if you created a new branch with that, I could merge the DLNA branch into it? Currently I have keep both branches in sync if I edit the TranscodingService. :cry:
    In fact the MediaServer branch is already merged into my branch, just not the latest version. I did that to get the TranscodingService.

    Can I push to your git repos?
    No you couldn't. But you can now :)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Should I just move development to your branch?
    If this is the best for you and keeps you motivated, do that :)
    Just let the others (like MrTechno) know what you are doing where (in the right thread).

    Maybe you can develop in my Thread and from time to time we copy the Files over to the DLNA_v4 Branch? This should be pretty easy: copy the Two Plugin folders, override all the files, commit changes.
    What do you think?
     

    Users who are viewing this thread

    Top Bottom