TV4Home - WCF Webservice for MediaPortal TV Server (2 Viewers)

j1nx

Portal Pro
July 16, 2005
233
10
I started with the streaming service and the source code is available from http://github.com/oxan/mpwebstream. It is a ASP.NET site which uses the TV4Home service to start the timeshifting. The streaming code is copied from MPWebServices. I'll open a separate thread when it's ready :)

@j1nx: I'll take a look at integration with GMAwebservices once that's ready :)

Oxan, you might be better of contacting Mike Lowrey and aKoeplinger on tv4home at codeplex;


They are actually already a long way with the webinterface connecting to TV4Home;

Looking at the source, it also contains exactly what you are doing/want to do. A streaming webservice;
 

KayDiefenthal

MP Donator
  • Premium Supporter
  • July 18, 2006
    1,176
    92
    46
    Germany - Bonn
    Home Country
    Germany Germany
    AW: TV4Home - WCF Webservice for MediaPortal TV Server

    i find it nice that you accepted the tv4home wcf solution

    but mike has here the service only for testing public made
    if he plans all public would he the links added

    but now is the cat of the bag
     

    j1nx

    Portal Pro
    July 16, 2005
    233
    10
    Re: AW: TV4Home - WCF Webservice for MediaPortal TV Server

    i find it nice that you accepted the tv4home wcf solution

    but mike has here the service only for testing public made
    if he plans all public would he the links added

    but now is the cat of the bag

    I had a hard time, figuring out what you tried to say. I came up with something as; You spoiled the suprise, etc etc.....

    For the sake of it, I removed the links.
     

    KayDiefenthal

    MP Donator
  • Premium Supporter
  • July 18, 2006
    1,176
    92
    46
    Germany - Bonn
    Home Country
    Germany Germany
    AW: TV4Home - WCF Webservice for MediaPortal TV Server

    thanx for removing the links

    We discuss things about new features and other
    but the mike to tell you
    He will also say if the two are of the opinion that everything should be public

    but alex just said that it will not be long
     

    j1nx

    Portal Pro
    July 16, 2005
    233
    10
    No problem.

    I knew, it was not all yet finished/ready as there were no releases or downloads yet. Just never realised this was a "secret". It is al just out there. But indeed let's await Mike's comments.
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    I have another improvement request... ;)

    Due to the blocking nature of webservices it can take quite some time to get the e.g. the full list of channels.

    I would propose to solve this by adding new methods to a) only dowload base classes (w.o. the full information) as well as b) indexed downloading. Not sure if I expressed myself well enough so here's an example for the GetChannels Class

    Currently:
    Code:
    List<WebChannel> GetChannels(int groupId)

    New
    List<WebChannel> GetChannels(int groupId);
    int GetChannelsCount(int groupId);
    List<WebChannel> GetChannels(int groupId, int startIndex, int endIndex);
    WebChannelDetails GetChannelDetails(int channelId);

    At least this is the way we did it in the gma webservice, their might be smarter ways to do it. Especially for mobile devices this is a must-have since downloading e.g. 100 channels with all details over the (e.g. 3g) data connection will take quite some time.

    :D
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    Regarding the streaming: I will implement a new service (which makes things unnecessary more complex, but it simply doesn't integrate well with a WCF service) for streaming and transcoding TV, mainly based on the code from MPWebServices. Generally I think it will be a ASP.NET site with a single page, like the Streamer.aspx from MPWebServices. It then communicates with the TV4Home service to get the streaming URL and streams the output over HTTP. I'm open for any comments or discussion on the design :)

    Then later, someone can create a web interface which connects to the TV4Home service, the GMAWebservice and my stream service, to create a single webinterface for everything related to MediaPortal.
    Sounds good! Thanks for your engagement!

    It is al just out there. But indeed let's await Mike's comments.

    Yes it's out there because of the long time in which we developed. (Codeplex don't allow long time development without publishing :) )

    But i will send you a pn ;)
     

    akoeplinger

    Portal Member
    December 13, 2010
    15
    8
    Home Country
    Austria Austria
    Finally found time to register here ;-)

    The code is available on Codeplex and you'll find it via Google, but we wanted to find the right moment for making an official release (as the project includes much more than just the webservice). I guess it won't take long until we are ready to do that.

    DieBagger: I'll look into implementing your suggestions, thank you!

    Alex
     

    KayDiefenthal

    MP Donator
  • Premium Supporter
  • July 18, 2006
    1,176
    92
    46
    Germany - Bonn
    Home Country
    Germany Germany
    AW: Re: TV4Home - WCF Webservice for MediaPortal TV Server

    Finally found time to register here ;-)

    The code is available on Codeplex and you'll find it via Google, but we wanted to find the right moment for making an official release (as the project includes much more than just the webservice). I guess it won't take long until we are ready to do that.

    @DieBagger: I'll look into implementing your suggestions, thank you!

    Alex

    welcome

    now is the tv4home team completly
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Just fyi the latest svn doesn't run any more because you define GetChannels twice (with different parameters for indexed downloading). In webservices every method has to have a unique name.

    Edit: Also, you're not using startIndex, endIndex like the method name would suggest but startIndex, count.

    Code:
    _tvBusiness.GetTVGuideChannelsForGroup(groupId).GetRange(startIndex,endIndex)

    And if it's not too much to ask, please add a method to only retrieve a base channel (id, name, groups, ...).

    :D
     

    Users who are viewing this thread

    Top Bottom