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

Status
Not open for further replies.

mischa

Portal Member
March 5, 2008
17
4
Edingen-Neckarhausen
Home Country
Germany Germany
Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

Hi,

i think this is not necessary. It works also without this browserdetection for me for both ie8 and firefox. Look in the object-tag and you see the embed-tag. IE8 only known the object-tag and firefox only known the embed-tag. The other are ignored.

So is working for me.

Greetings,
Mischa
 

shh26_83

MP Donator
  • Premium Supporter
  • November 19, 2009
    40
    1
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Hi,

    i think this is not necessary. It works also without this browserdetection for me for both ie8 and firefox. Look in the object-tag and you see the embed-tag. IE8 only known the object-tag and firefox only known the embed-tag. The other are ignored.

    So is working for me.

    Greetings,
    Mischa
    Sorry, but by me your file does work.
    IE are good, Firefox no picture!
     

    mischa

    Portal Member
    March 5, 2008
    17
    4
    Edingen-Neckarhausen
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Sorry, but by me your file does work.
    IE are good, Firefox no picture!

    Hi,

    yes you are right. I forgot to test with firefox. The problem was the javascript to evaluate the vlc-instance. This is now better implemented as function getVlvPlayer(id). I think this is better then the use of document.write (i dont like it).

    @gemx It is your plugin, what is better?

    Note: I added the function getVlvPlayer(id) and used it overall who is needed, particulary by the buttons.

    Note 2: The codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" is not found anymore. I think this attribute is not necessary because the new vlc >1.0 is installing the activex-component automatically.

    I hope i can clarify.

    Greetings,
    Mischa
     

    Attachments

    • VLCFirefox.zip
      30.6 KB

    VASkO

    Portal Member
    September 18, 2008
    48
    2
    Home Country
    Slovenia Slovenia
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Code:
    Server Error in '/' Application.
    
    Object reference not set to an instance of an object.
    
    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.NullReferenceException: Object reference not set to an instance of an object.
    
    Source Error: 
    
    
    Line 83:     public WebMiniEPG(Channel ch)
    Line 84:     {
    Line 85:       this.idChannel = ch.IdChannel;
    Line 86:       this.name = ch.DisplayName;
    Line 87:       this.isWebStream = ch.IsWebstream();
    
    Source File: c:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\Classes.cs    Line: 85 
    
    Stack Trace: 
    
    
    [NullReferenceException: Object reference not set to an instance of an object.]
       MediaPortal.TvServer.WebServices.Classes.WebMiniEPG..ctor(Channel ch) in c:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\Classes.cs:85
       MediaPortal.TvServer.WebServices.ServiceInterface.GetTvMiniEPGForGroup(Int32 idGroup) in c:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\TvServiceWebServices.asmx.cs:230
       Default.RefreshTv() in c:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:181
       Default.btnTv_Click(Object sender, EventArgs e) in c:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:111
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
       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
    
    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

    This is what i'm geting on Windows7 x64 when pressing the TV button. I have over 180 channels and EPG for them too.

    patched this the quic&dirty way for myself with checking if obj reference is null, then skip processing that channel. all channels load in web if now.
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Thanks mischa.
    Tried your last version with IE6, IE8 and Firefox and all worked

    :) :D
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Just uploaded RC2.

    All bugs should be fixed except the problems with 64-bit OS. All targets are set to x86 as usual, so i have no idea what the problem might be.

    Are all 64 bit users having problems or only some of you?

    The known bugs section for the new version is already in first post and will be filled as with the previous version.

    I think we are getting very close to the first "stable" release.

    Thanks very much to all of you :)

    Still nobody who wants take on the design part?
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    41
    Austria
    Home Country
    Austria Austria
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Hey gemx,

    I'm playing with the idea of designing a UI specialised for mobile device but I wanted to wait until your project was a little more stable.

    Not promising anything though ;)

    :D for the new version
     

    shh26_83

    MP Donator
  • Premium Supporter
  • November 19, 2009
    40
    1
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    :D for the new version.
    That works fine by me!
     

    mischa

    Portal Member
    March 5, 2008
    17
    4
    Edingen-Neckarhausen
    Home Country
    Germany Germany
    Re: [New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and

    Just uploaded RC2.

    The known bugs section for the new version is already in first post and will be filled as with the previous version.

    I think we are getting very close to the first "stable" release.

    Hi gemx,

    i found two small bugs and a feature ;) .

    First: Thank you for the greet work. The last RC2 is working good.

    The Play-Button for recordings isn't working.
    In Default.aspx.cs in the function gridRecordings_RowCommand(...) the last line should be:
    Code:
        StartPlayer("idRecording=" + idx.ToString() + "&idProfile=" + cbRecordingProfiles.SelectedIndex, gridRecordings.Rows[rowIndex].Cells[3].Text);
    Note the change of the gridRecordings Cells index.

    The second one is a mistake in the css definition of the background image for the body-tag in Default.aspx:

    It should be:
    Code:
    <body style="background-image: url(pics/Background.png);">
    but the picture isn't exists in the pics-directory

    And last is not a bug but a feature:
    In App_Code\Utils.cs i have added the second param to the streamwrite to append the lines and not overwrite the lines.
    Code:
      using (StreamWriter sw = new StreamWriter(logDir+"\\" + DateTime.Now.ToString("dd_MM_yy") + ".log", true))

    Greetings,
    Mischa
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom