Updated version for MediaPortal 1.1.1 (1 Viewer)

gunck4

Portal Pro
December 8, 2007
58
1
Home Country
Finland Finland
Hi everybody!

Anybody using the latest version on Windows 7 x64? How stable is it? I have been using 4therecord for a while and I'm quite happy with it but I miss the feature to turn on live streaming from the web interface. :)

Thank you in advance!
 

KayDiefenthal

MP Donator
  • Premium Supporter
  • July 18, 2006
    1,176
    92
    46
    Germany - Bonn
    Home Country
    Germany Germany
    AW: Updated version for MediaPortal 1.1.1

    hi oxan i have some changes for you

    change get data from tvbusinesslayer instead of
    sql
    ##########WebRecording#############
    [WebMethod]
    public List<WebRecording> GetAllRecordings()
    {
    List<WebRecording> recInfos = new List<WebRecording>();
    if (!Connect())
    return recInfos;

    IList<Recording> recordings = Recording.ListAll();
    if (recordings != null && recordings.Count > 0)
    {
    foreach (Recording rec in recordings)
    recInfos.Add(new WebRecording(rec));
    }
    return recInfos;
    }
    ##########WebProgram#############

    [WebMethod]
    public List<WebProgram> GetProgramForChannel(Int32 idChannel, DateTime startTime, DateTime endTime)
    {
    layer = new TvBusinessLayer();
    List<WebProgram> programs = new List<WebProgram>();
    if (!Connect())
    return programs;
    List<Program> dbPrograms = new List<Program>(layer.GetPrograms(Channel.Retrieve(idChannel), startTime, endTime));

    if (dbPrograms != null && dbPrograms.Count > 0)
    {

    foreach (Program program in dbPrograms)
    programs.Add(new WebProgram(program));
    }
    return programs;
    }

    optional fiel Duration for WebProgram as int must be added in classes.cs
    property

    public Int32 Duration;

    ctor

    this.Duration = (prog.EndTime - prog.StartTime).Minutes;

    i set with Duration the program cell width in ui
     

    Users who are viewing this thread

    Top Bottom