MediaPortal Forums HTPC/MediaCenter

Sponsored Ads

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » General Talk

Notices

General Talk Talk about the MediaPortal TV-Server

Reply
 
LinkBack (1) Thread Tools Display Modes
Old 2008-03-14, 15:02   #11 (permalink)
Portal Member
 
Join Date: Jul 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Let me know how you get along. I've wanted to add filesystem support for TVServer for a long time, but been deterred by the lack of any usable interface. (.net remoting isn't very usable from the xbox side of things)

Just for reference, dvdplayer can already play the rtsp:// url the tvserver provides data from for livetv. Thus just some interface to tune to a channel, and returning the rtsp url would make it possible to get livetv streaming working.

Regards
elupus
elupus is offline   Reply With Quote
Old 2008-03-14, 15:13   #12 (permalink)
Portal Member
 
Join Date: May 2004
Location: Sweden
Posts: 88
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default

@EvilDude, there is already a python script for XBMC that can control MediaPortal, (as I understand the only thing that script do not yet support is Live-TV streaming), so maybe you like to start by extending that existing script, see: MP & XBMC intergration scripts v0.6d Update 4-MAR-07 - MediaPortal Forum

Also C/C++ interface to TVServer ( potential XBMC client )

The streaming protocol you want to use today is RTSP, ...at least until MediaPortal has a UPnP MediaServer which supports streaming Live-TV over UPnP.

Some related topic-threads in the XBMC forum:
MediaPortal Control Script in the making - XBMC Community Forum
XBMC MediaPortal Control Script - XBMC Community Forum
New Python Script for MediaPortal Client - XBMC Community Forum
__________________
Regards / Gamester17. Project Manager, The XBMC Project.
xbmc.org the official XBMC website and forums.
Gamester17 is offline   Reply With Quote
Old 2008-03-15, 02:10   #13 (permalink)
Portal Member
 
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 3 Times in 3 Posts

Country:


Default

Quote:
Originally Posted by rtv View Post
The tvservice has an "heart beat" feature that will disconnect inactive clients automatically.
Hm the problem I have is that the server which is doing the actual talking to TV-Server will constantly be running, and so will remain active. I need some way to tell the server that "for this time shift, when the last client disconnects, stop timeshifting".


Quote:
Originally Posted by elupus View Post
Let me know how you get along. I've wanted to add filesystem support for TVServer for a long time, but been deterred by the lack of any usable interface. (.net remoting isn't very usable from the xbox side of things)

Just for reference, dvdplayer can already play the rtsp:// url the tvserver provides data from for livetv. Thus just some interface to tune to a channel, and returning the rtsp url would make it possible to get livetv streaming working.

Regards
elupus
Yeah, I'm considering doing this as a video python plugin, just to get something working. I've gotten all the server commands working : ListGroups, ListChannels, TimeshiftChannel, StopTimeshift. I'm now going to code the python video plugin to use these plugins. All my testing so far as been through telnet.

Quote:
Originally Posted by Gamester17 View Post
@EvilDude, there is already a python script for XBMC that can control MediaPortal, (as I understand the only thing that script do not yet support is Live-TV streaming), so maybe you like to start by extending that existing script, see: MP & XBMC intergration scripts v0.6d Update 4-MAR-07 - MediaPortal Forum
I wanted to keep the TVServer stuff separate for now - just because it's easier, but also because I do not want to use MediaPortal on my PC, as I want my PC to be just the server, and XBMC to be my client, and the current plugin uses MediaPortal.
EvilDude is offline   Reply With Quote
Old 2008-03-15, 06:23   #14 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,293
Thanks: 56
Thanked 57 Times in 47 Posts


Default

Quote:
Originally Posted by EvilDude View Post
Quote:
Originally Posted by rtv View Post
The tvservice has an "heart beat" feature that will disconnect inactive clients automatically.
Hm the problem I have is that the server which is doing the actual talking to TV-Server will constantly be running, and so will remain active. I need some way to tell the server that "for this time shift, when the last client disconnects, stop timeshifting".
Currently no such thing is possible. So all TVE3 clients need to send the heart beat signal to keep the TVE3 server "alive". As we are currently in feature freeze there won't be any additional support for different kind of communication.

One possibility is that when developing the xbmc client you will create your own TVE3 brach (local SVN or just local folder on your dev PC) and then add such feature. After the feature freeze is over (no exact date yet) the team could possibly integrate the new feature in main code base.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"

Last edited by tourettes; 2008-03-15 at 06:26.
tourettes is online now   Reply With Quote
Old 2008-03-15, 06:25   #15 (permalink)
Portal Member
 
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 3 Times in 3 Posts

Country:


Default

Very early alpha version available!
https://www.prashantv.com/xbmc/TVServerXBMC.zip


In the zip file,

TVServerXBMC => the VS2005 project.
TVServer Live TV => XBMC python video plugin

The VS2005 project is just a server (no gui, just a command window which will show what it is doing). I have made it single threaded for now, but it is made so that I can very easily make it multithreaded.

The "TVServer Live TV" folder is the xbox video plugin. This means that it has to be copied to XBMC\plugins\video. Once you do that, you can add it as a source.

By default the VS2005 project runs on port 9596, and must be run on the machine that is the tv server. The XBMC script connects to "192.168.1.2", you can configure that by opening the file:
TVServer Live TV\MpLiveTv\xbmcplugin_list.py

And at the top modifying SERVER_HOST. Make sure you use an IP and not the dns name.

I should probably write up some basic documentation, but I'm just happy to have gotten it working. It has some ugly hacks, like "~~Stop Timeshifting" in every menu, because I can't make it do that automatically, but if I view channel 10, and change to ABC, it automatically stops and starts the new one so I'm pretty happy with it.

Please post any feedback you have.

Last edited by EvilDude; 2008-03-15 at 06:47. Reason: Updated zip file.
EvilDude is offline   Reply With Quote
This User Say Thank You:
Old 2008-03-15, 09:40   #16 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,244
Thanks: 30
Thanked 131 Times in 86 Posts

Country:

My System

Default

You might be able to get greater control over the TV Server by turning your server program into a TV Server Plugin...

I'm going away to test what you've done so far now ... I'll report back if I find anything note-worthy ...

Cheers,
and-81 is offline   Reply With Quote
Old 2008-03-15, 10:09   #17 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,244
Thanks: 30
Thanked 131 Times in 86 Posts

Country:

My System

Default

Hey, I'm trying to get it going, but I'm not sure where the python files should go...

I didn't have an XBMC\Plugins folder so I made one, but I don't know if I've done it right.

Can you explain the process for setting it up a little more?

Thanks,
and-81 is offline   Reply With Quote
Old 2008-03-15, 10:31   #18 (permalink)
Portal Member
 
Bram's Avatar
 
Join Date: Dec 2005
Location: 's-Hertogenbosch
Age: 30
Posts: 832
Thanks: 18
Thanked 2 Times in 2 Posts

Country:

My System

Default

You'll probably have to copy the files to the "scripts' folder on your xbox.
__________________
Bram is offline   Reply With Quote
Old 2008-03-15, 11:01   #19 (permalink)
Portal Member
 
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 3 Times in 3 Posts

Country:


Default

Quote:
Originally Posted by and-81 View Post
Hey, I'm trying to get it going, but I'm not sure where the python files should go...

I didn't have an XBMC\Plugins folder so I made one, but I don't know if I've done it right.

Can you explain the process for setting it up a little more?

Thanks,
Looks like you might have a very old version? This feature was added to SVN semi recently, so I would update to the latest SVN version which would come with the plugins folder.

You need to put it in
XBMC\plugins\video

This is how it should be:

$ ls
MpLiveTv/ default.py* default.py~* default.tbn* resources/

$ pwd
XBMC/plugins/video/TVServer Live TV

Hope that helps
EvilDude is offline   Reply With Quote
Old 2008-03-15, 11:03   #20 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,244
Thanks: 30
Thanked 131 Times in 86 Posts

Country:

My System

Default

I think my SVN is about 3 or 4 months old. I'll update and try again.

Thanks mate,
and-81 is offline   Reply With Quote
Reply

Bookmarks

Tags
python, script, xbmc

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 On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://forum.team-mediaportal.com/general-talk-233/xbmc-python-script-36590/
Posted By For Type Date
xbmc-favorites - Google Code This thread Refback 2008-07-09 17:34

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script support for IMDB grabbing dukus watch/edit Videos 55 Today 10:57
Python Plugin? t-herweg Plugins/Erweiterungen 0 2007-10-20 22:25
XMLtv Channel tag Replacer Python script. gibman xmlTV 1 2007-09-04 18:55
Video thumbnails script MonsterM Tips and Tricks 5 2007-04-29 22:47
Script for Palmbutler HTPC-Fan Tips and Tricks 8 2005-04-15 23:58


All times are GMT +1. The time now is 14:02.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Integrated by BBpixel ©2004-2008, jvbPlugin
Protected by Akismet Blog with WordPress