Plugin: MP2Extended | Page 61

Discussion in 'MP2Extended' started by FreakyJ, October 5, 2015.

  1. hkjensen
    • Premium Supporter

    hkjensen MP Donator

    Joined:
    June 11, 2007
    Messages:
    164
    Likes Received:
    47
    Location:
    Copenhagen
    Ratings:
    +63 / 0
    Home Country:
    Denmark Denmark
    WebMediaportal dos not work, it is requesting /MPExtended/MediaAccessService witch returns "Bad Request"
    From server.log:
    [2015-12-18 17:20:11,269] [1180033] [121 ] [INFO ] - MainRequestHandler: Received request http://192.168.10.136:4322/MPExtended/MediaAccessService
    [2015-12-18 17:20:11,270] [1180034] [121 ] [INFO ] - MainRequestHandler: AbsolutePath: /MPExtended/MediaAccessService, uriParts.Length: 3
    [2015-12-18 17:20:11,271] [1180035] [121 ] [INFO ] - MAS: AbsolutePath: /MPExtended/MediaAccessService, uriParts.Length: 3, Lastpart: MediaAccessService
    [2015-12-18 17:20:11,284] [1180048] [121 ] [WARN ] - MAS: Micromodule not found: MediaAccessService
    [2015-12-18 17:20:11,286] [1180051] [121 ] [ERROR] - MainRequestHandler: Exception:
    HttpServer.Exceptions.BadRequestException: BadRequest: MAS: Micromodule not found: MediaAccessService
    at MediaPortal.Plugins.MP2Extended.ResourceAccess.MediaAccessServiceHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MP2Extended\ResourceAccess\MediaAccessServiceHandler.cs:line 135
    at MediaPortal.Plugins.MP2Extended.ResourceAccess.MainRequestHandler.Process(IHttpRequest request, IHttpResponse response, IHttpSession session) in m:\Programmieren\C#\MediaPortal 2\MediaPortal\Incubator\MP2Extended\ResourceAccess\MainRequestHandler.cs:line 141



    From webportal.log:
    2015-12-18 17:02:36.47970 [ (54)] DEBUG: TAS: Connected to version 0.6.0-beta
    2015-12-18 17:03:32.41081 [ (49)] DEBUG: Reloading configuration file 'Authentication.xml' due to changes.
    2015-12-18 17:03:32.41282 [ (49)] DEBUG: Reloading configuration file 'StreamingPlatforms.xml' due to changes.
    2015-12-18 17:03:32.41282 [ (45)] DEBUG: Reloading configuration file 'StreamingPlatforms.xml' due to changes.
    2015-12-18 17:03:32.41394 [ (49)] DEBUG: Reloading configuration file 'WebMediaPortal.xml' due to changes.
    2015-12-18 17:03:32.41394 [ (48)] DEBUG: Reloading configuration file 'WebMediaPortal.xml' due to changes.
    2015-12-18 17:03:32.41694 [ (54)] INFO: WebMediaPortal version 0.6.0-beta (commit 7326b77) now connected with MAS 192.168.10.136:4322 and TAS 192.168.10.100:4322
    2015-12-18 17:03:32.51644 [ (54)] DEBUG: MAS: connection failed
    System.ServiceModel.ProtocolException: The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '
    <!DOCTYPE html>
    <html lang=en>
    <meta charset=utf-8>
    <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
    <title>Error 400 (Bad Request)!!</title>
    <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}
    html{background:#fff;color:#222;padding:15px}
    body{margin:7% auto 0;max-width:600px;min-height:180px;padding:30px 0 15px}* > body{background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAYAAAA9dtSCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4'.
    ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
    at System.Net.HttpWebRequest.GetResponse()
    at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    --- End of inner exception stack trace ---
     
    • Thank You! Thank You! x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Thanks for testing (y)
    It calls http://192.168.10.136:4322/MPExtended/MediaAccessService and I don't know why.... I just checked the src and can't see why it should do that. If I call this in MPExtended it also gives me an error :/

    It looks like you compiled WebMP yourself.
    On Application startup it calls: Log.Debug("MAS: Connected to version {0}", Current.MAS.GetServiceDescription().ServiceVersion);

    So the error must occure here:
    Code (C):
    1. public WebMediaServiceDescription GetServiceDescription()
    2.         {
    3.             LoadProviders();
    4.             return new WebMediaServiceDescription()
    5.             {
    6.                 ApiVersion = API_VERSION,
    7.                 ServiceVersion = VersionUtil.GetVersionName(),
    8.  
    9.                 AvailableFileSystemLibraries = FileSystemLibraries.GetAllAsBackendProvider(),
    10.                 AvailableMovieLibraries = MovieLibraries.GetAllAsBackendProvider(),
    11.                 AvailableMusicLibraries = MusicLibraries.GetAllAsBackendProvider(),
    12.                 AvailablePictureLibraries = PictureLibraries.GetAllAsBackendProvider(),
    13.                 AvailableTvShowLibraries = TVShowLibraries.GetAllAsBackendProvider(),
    14.  
    15.                 DefaultFileSystemLibrary = ProviderHandler.GetDefaultProvider(ProviderType.Filesystem),
    16.                 DefaultMovieLibrary = ProviderHandler.GetDefaultProvider(ProviderType.Movie),
    17.                 DefaultMusicLibrary = ProviderHandler.GetDefaultProvider(ProviderType.Music),
    18.                 DefaultPictureLibrary = ProviderHandler.GetDefaultProvider(ProviderType.Picture),
    19.                 DefaultTvShowLibrary = ProviderHandler.GetDefaultProvider(ProviderType.TVShow),
    20.             };
    21.         }
    very strange :/
     
  4. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,940
    Likes Received:
    459
    Gender:
    Male
    Ratings:
    +699 / 0
    Home Country:
    Denmark Denmark
    I have been super buzzy at work the last couple of weeks so I have made no progress. :(
     
  5. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    No problem ;)
    I've just pushed all the latest changes and try to fix the nuget issues, once again >_>

    Have nice holidays!
     
  6. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
  7. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    • Like Like x 1
  8. pünktchen

    pünktchen Portal Pro

    Joined:
    October 26, 2010
    Messages:
    537
    Likes Received:
    147
    Ratings:
    +200 / 0
    Home Country:
    Germany Germany
    I try to explain it. I need it to change the audio track or the streaming bitrate in Emby and for fast channel changing.
    Why:
    When using the url given by "RetreiveStream" Emby starts a ffmpeg process with it. No problem so far. But when i change the streaming bitrate in Emby the ffmpeg process is killed and a new process is started with the same url.
    This doesn't work a second time! (You can test it with vlc) Probably by closing the first ffmpeg process, MPExtended thinks the player has disconnected? But it always works with "DoStream". You don't even need to initialize and start a stream for this! It's all done by "DoStream".
    Now the problem with the original code:
    Without an "identifier" as start parameter for "DoStream" there's no way to finish or cancel the MPExtended stream.
    You would always have to wait for the stream timeout. Really bad for zapping!
     
  9. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Fixed. Extra references to NuGet program removed from projects (see commit history)
     
  10. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Thank you!
    I figured this out, too. I deleted these lines using Notepad++, but the problem was that once I started VS it adds these lines again to the project files >_>

    I need to confirm it again, I just won't have time today.

    But again, thank you very much!
     
  11. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Check your NuGet settings in Visual Studio. I think "Allow NuGet to download missing packages" causes those extra reference to be added
     
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!