[New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and MP (1 Viewer)

Status
Not open for further replies.

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Yep, there seems to be an issue with timeshifting.
    It once worked *always these quick changes before release * :oops:

    I am checking it.

    It the meantime it would be nice if you could test the other things (movies, pictures ...)

    Will post an update soon
     

    nicx

    Portal Pro
    February 1, 2006
    387
    12
    Stuttgart
    Home Country
    Germany Germany
    i would test it if i had installed mp client on my server, but as i wrote i just have a dedicated tv-server installed without the client and i dont want to install the client ;) sorry
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Have you tried to stream a recording with the "direct" profile?
     

    nicx

    Portal Pro
    February 1, 2006
    387
    12
    Stuttgart
    Home Country
    Germany Germany
    recorings are not working with this error:

    Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

    Ausnahmedetails: Gentle.Common.GentleException: The number of returned rows 0 did not match the expected count of 1.
    If concurrency control is enabled this may indicate that the record was updated or deleted by another process.

    Quellfehler:


    Zeile 177: this.timesWatched = rec.TimesWatched;
    Zeile 178: this.title = rec.Title;
    Zeile 179: this.channelName = Channel.Retrieve(rec.IdChannel).DisplayName;
    Zeile 180: }
    Zeile 181: }


    Quelldatei: c:\Dokumente und Einstellungen\Administrator\Desktop\MediaPortal WebServices\htdocs\App_Code\Classes.cs Zeile: 179

    Stapelüberwachung:


    [GentleException: The number of returned rows 0 did not match the expected count of 1.
    If concurrency control is enabled this may indicate that the record was updated or deleted by another process.]
    Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg) +124
    Gentle.Common.Check.Fail(Exception e, Error error, Object[] args) +42
    Gentle.Common.Check.Verify(Boolean condition, Error error, Object[] args) +18
    Gentle.Framework.ObjectFactory.GetInstance(Type type, SqlResult sr, Key key) +150
    Gentle.Framework.PersistenceBroker.RetrieveInstance(Type type, Key key, IDbConnection conn, IDbTransaction tr) +172
    Gentle.Framework.PersistenceBroker.RetrieveInstance(Key key) +70
    Gentle.Framework.Broker.RetrieveInstance(Key key) +104
    TvDatabase.Channel.Retrieve(Int32 id) in C:\KwasiDrive\Devel\Visual Studio 2005\Projects\Team MediaPortal\TvEngine3\TVLibrary\TVDatabase\Channel.cs:367
    MediaPortal.TvServer.WebServices.Classes.WebRecording..ctor(Recording rec) in c:\Dokumente und Einstellungen\Administrator\Desktop\MediaPortal WebServices\htdocs\App_Code\Classes.cs:179
    MediaPortal.TvServer.WebServices.ServiceInterface.GetAllRecordings() in c:\Dokumente und Einstellungen\Administrator\Desktop\MediaPortal WebServices\htdocs\App_Code\TvServiceWebServices.asmx.cs:322
    Default.RefreshRecordings() in c:\Dokumente und Einstellungen\Administrator\Desktop\MediaPortal WebServices\htdocs\Default.aspx.cs:202
    Default.btnRecordings_Click(Object sender, EventArgs e) in c:\Dokumente und Einstellungen\Administrator\Desktop\MediaPortal WebServices\htdocs\Default.aspx.cs:63
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +101
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    gemx,

    you are the man!!! This is exactly what MP was lacking in the past. Everyone who developed any kind of "remote-control" (be it iPiMP, StreamTV, the Touchscreen-Interface, etc.) had to develop his own interface for the server side. And I guess everyone faced the same problems (how to transfer pictures of CD covers, etc.). Now SOAP Webservices is a standard which is accessible from nearly every platform in every programming language and the remote-control developers can concentrate on the remote part.

    For me this is definitely a must-have standard plugin for TVServer. Unfortunately I'm not at home and will not be for the next couple of weeks and therefore can't play around with it. Thank you very much and please keep up this plugin!

    Michael
     

    joystick

    MP Donator
  • Premium Supporter
  • January 26, 2006
    892
    39
    Home Country
    Germany Germany
    hey great Idea,
    unfortunately this seems not to work with 1.02 (TV) ,right, due to the fact of episodesnames and numers are not located in the database. As far as I understand, one could change the wsdl file, but .... i don't know what to do with is afterwards... or is ot possible to get a file to test with 1.02?

    however, great work!

    cheers

    joystick
     

    fremel

    Portal Member
    April 21, 2007
    18
    4
    This sounds like a great service unfortunually i get this error
    im thinking i might has something to do with the fact im running Windows 7 x64
    EDIT: i just checked and the program WebserverHost.exe is running in 64bits, should be some setting in VS to set it to always run in 32bit i think



    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Could not load file or assembly 'DirectShowLib' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.BadImageFormatException: Could not load file or assembly 'DirectShowLib' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'DirectShowLib' could not be loaded.


    === Pre-bind state information ===
    LOG: User = HTPC-WIN7\Fredrik
    LOG: DisplayName = DirectShowLib
    (Partial)
    LOG: Appbase = file:///C:/AMC/Webservices/htdocs/
    LOG: Initial PrivatePath = C:\AMC\Webservices\htdocs\bin
    Calling assembly : System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\AMC\Webservices\htdocs\web.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Users/Fredrik/AppData/Local/Temp/Temporary ASP.NET Files/root/bf9508d8/261d4711/DirectShowLib.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Fredrik/AppData/Local/Temp/Temporary ASP.NET Files/root/bf9508d8/261d4711/DirectShowLib/DirectShowLib.DLL.
    LOG: Attempting download of new URL file:///C:/AMC/Webservices/htdocs/bin/DirectShowLib.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
     

    Attachments

    • full error.zip
      30.6 KB

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Thanks for testing so far.

    I already got some bugs fixed and live-tv streaming running

    This is still an alpha release so testing is highly appreciated :)

    Although the main focus was on the web services i think that the web frontend (which was just testing purpose of the web service) proves quite usefull - at least for me ;)

    Will post an updated version tomorrow.

    Please also do some tests with the MP parts like Movies,Pictures and Music

    :D
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    Alwell it looks like you finished off what I was doing (plus a bit extra). Well done, I'll have to try it later.
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Uploaded new version in first post ;)
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom