MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Improvement Suggestions


Improvement Suggestions Got idea how the TV-Server can be improved? Post it here!

Reply
 
Thread Tools Display Modes
Old 2007-01-25, 12:15   #1 (permalink)
Portal Member
 
Join Date: Jan 2007
Location: Tamworth, Staffs
Age: 25
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Lightbulb Use WebService between Server and Client

Started on: 2007-01-25
last update: 2007-01-25

Summary:
Instead of using a direct connection to the SQL server for information (EPG etc), why not use a series of remote methods (WebService) to access the functionality.

Description:
By using a webservice to comunicate, there doesnt have to be any configuration of SQL Server. Also, the TVengine can be updated functionality-wise - without requiring a newer TVclient plugin (assuming the same WS methods are intact)

Examples:

1) Start Timeshifting
-- StartTimeshift(Channel); returns stream details

2) Schedule a Recording
-- RecordChannel(Channel,StartTime,EndTime) returns true/false depending on a clash etc

3) Getting the EPG
-- GetEPG() returns a DataSet/XML data etc

Obviously this adds the requirement of IIS to the TVserver - but since we have SQL Server anyway, I don't see this as an issue.

richbayliss is offline   Reply With Quote
Old 2007-01-25, 13:29   #2 (permalink)
Portal Member
 
wortelsoft's Avatar
 
Join Date: May 2005
Location: Rotterdam, The Netherlands
Age: 32
Posts: 374
Thanks: 1
Thanked 1 Time in 1 Post


Default

XP home doesn't have IIS as an instalable option.
Better sollution would be apache as the mp webinterface is already ussing that.
wortelsoft is offline   Reply With Quote
Old 2007-01-25, 14:20   #3 (permalink)
Portal Member
 
Join Date: Jan 2007
Location: Tamworth, Staffs
Age: 25
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Good Point (I hadn't thought of XP Home, since I thought XP Pro was required for the TVengine)

I think there is a way to expose a WebService directly from a .NET application (as opposed to using IIS) which I will look into.
richbayliss is offline   Reply With Quote
Old 2007-01-25, 16:17   #4 (permalink)
Portal Member
 
Join Date: Jan 2007
Location: Tamworth, Staffs
Age: 25
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Having looked into it - I think it would be possible to use Remoting to do this.

This would remove the IIS requirement, which means XP Home is back in the frame.
richbayliss is offline   Reply With Quote
Old 2007-01-25, 22:58   #5 (permalink)
Portal Member
 
thechad's Avatar
 
Join Date: Feb 2005
Location: Geelong, Australia
Age: 27
Posts: 187
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Search for a thread called "New Web Interface"

Some people were looking into hosting ASP.Net in mediaportal but there were some issues. Cassini webserver is an example of hosting a ASP.Net in a .Net application without the need for IIS.

Remoting is already used to control the TVServer, however remoting is an MS only thing that can not be used from clients on other operating systems.
__________________
thechad is offline   Reply With Quote
Old 2007-01-25, 23:09   #6 (permalink)
Portal Member
 
Join Date: Jan 2007
Location: Tamworth, Staffs
Age: 25
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

hmmm, certainly worth a look.

Maybe a simple "telnet" based interface would suit then.

I just think exposing functionality over fixed methods is better than direct SQL server access.
richbayliss is offline   Reply With Quote
Old 2007-01-26, 21:26   #7 (permalink)
MP Donator
 
Join Date: Dec 2006
Age: 30
Posts: 139
Thanks: 12
Thanked 5 Times in 5 Posts

Country:


Default

You can host Web Services directly in your app without IIS as long as you use Microsoft's web service enhancements which supports a Soap TCP interface, however the disadvantage is that both client and server both have to use WSE3.
See here for more details.

It's also possible to host the ASP.NET runtime in your app, hook into the HTTP stack and serve requests for a web service or webpages without the need for IIS.
See here for an excellent example.
However having played around with this with a process plugin for media portal there are problems as have been said which I believe is to do with AppDomains and process boundaries, but didn't look into it in any real detail.
Bagal is offline   Reply With Quote
Old 2007-01-27, 14:39   #8 (permalink)
Portal Member
 
Join Date: May 2006
Posts: 65
Thanks: 2
Thanked 0 Times in 0 Posts

Country:


Default

What about WCF (former Indigo)? It is included in the .NET Framework 3.0 and is based on Web Services.

I am currently developing a big software system based in Indigo an it works very well.
chrispi is offline   Reply With Quote
Old 2007-01-27, 18:53   #9 (permalink)
Portal Member
 
Join Date: Jan 2007
Location: Tamworth, Staffs
Age: 25
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I will research into this "Indigo" framework.

It would be nice if we could stay standards complient (hopefully allowing multiplatform clients) but one step at a time hey.
richbayliss is offline   Reply With Quote
Old 2007-01-28, 23:32   #10 (permalink)
Portal Member
 
Join Date: May 2006
Posts: 65
Thanks: 2
Thanked 0 Times in 0 Posts

Country:


Default

Quote:
Originally Posted by richbayliss View Post
It would be nice if we could stay standards complient (hopefully allowing multiplatform clients) but one step at a time hey.
This should be the case for Indigo/WCF (= Windows Communication Foundation). You can choose between SOAP for compatibility or binary format for speed. This can be configured in the config file. No code changes are required.

Hosting can be done in IIS or in a Executable.

Christoph
chrispi is offline   Reply With Quote
Reply

Bookmarks

Tags
client, server, webservice

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TV Server crash when Recorded TV it’s opened from a client comp ronilse fixed TV-Server / Client Bugs 8 2006-11-15 23:32
Server working but client not connecting allanp81 Get Support 4 2006-11-15 20:46
TV will not turn off on my client and server PC. ASiDiE pre 1.0 RC1 0 2006-11-03 17:56
NO TV on client Machine But OK on Server! yogiman_uk Get Support 11 2006-10-28 21:22
Question about client server model sambuddy General Support 2 2006-06-24 09:43


All times are GMT +1. The time now is 03:19.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden