home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
TV4Home - WCF Webservice for MediaPortal TV Server
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="DieBagger" data-source="post: 688744" data-attributes="member: 56421"><p>Ok, just set it up and tried a few things with a .NET testclient.</p><p></p><p>First, your examples don't work... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> This will (after adding a service reference):</p><p></p><p>[CODE]</p><p> TVEInteractionClient tvWebClient;</p><p> string ServerName = "myserver";</p><p> EndpointAddress address = new EndpointAddress(String.Format("http://{0}:4321/TV4Home.Server.CoreService/TVEInteractionService", ServerName));</p><p></p><p> // Initialize Service Client</p><p> tvWebClient = new TVEInteractionClient("BasicHttpBinding_ITVEInteraction", address);</p><p></p><p> WebChannelGroup[] groups = tvWebClient.GetGroups();</p><p></p><p> WebChannel[] channels = tvWebClient.GetChannels(groups[1].IdGroup);</p><p></p><p> try</p><p> {</p><p> String streaming = tvWebClient.SwitchTVServerToChannelAndGetStreamingUrl(channels[10].IdChannel);</p><p> }</p><p> catch (Exception ex)</p><p> {</p><p> Console.WriteLine(ex.ToString());</p><p> }</p><p>[/CODE]</p><p></p><p>Really cool stuff, a few notes:</p><p>a) would be useful if you would provide a way to select the port that the webservice uses on install</p><p>b) A startmenu/desktop icon is missing <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> (I would put it inside the Team MediaPortal folder)</p><p>c) Is it possible to get a list of all timeshifts? I haven't found anything. In gemx webservice I had the poss. to see all active timeshifts (and stop them), which was nice. </p><p>d) I don't think it's possible with the current implementation to start more than one timeshift at the same time? Would also be nice to have.</p><p></p><p>I'll implement the service in android tomorrow, by then I'll most likely have more feedback... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>Great job guys!!!! </p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="DieBagger, post: 688744, member: 56421"] Ok, just set it up and tried a few things with a .NET testclient. First, your examples don't work... ;) This will (after adding a service reference): [CODE] TVEInteractionClient tvWebClient; string ServerName = "myserver"; EndpointAddress address = new EndpointAddress(String.Format("http://{0}:4321/TV4Home.Server.CoreService/TVEInteractionService", ServerName)); // Initialize Service Client tvWebClient = new TVEInteractionClient("BasicHttpBinding_ITVEInteraction", address); WebChannelGroup[] groups = tvWebClient.GetGroups(); WebChannel[] channels = tvWebClient.GetChannels(groups[1].IdGroup); try { String streaming = tvWebClient.SwitchTVServerToChannelAndGetStreamingUrl(channels[10].IdChannel); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } [/CODE] Really cool stuff, a few notes: a) would be useful if you would provide a way to select the port that the webservice uses on install b) A startmenu/desktop icon is missing ;) (I would put it inside the Team MediaPortal folder) c) Is it possible to get a list of all timeshifts? I haven't found anything. In gemx webservice I had the poss. to see all active timeshifts (and stop them), which was nice. d) I don't think it's possible with the current implementation to start more than one timeshift at the same time? Would also be nice to have. I'll implement the service in android tomorrow, by then I'll most likely have more feedback... ;) Great job guys!!!! :thx: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
TV4Home - WCF Webservice for MediaPortal TV Server
Contact us
RSS
Top
Bottom