XBMC Python Script (2 Viewers)

Johnmen

Portal Member
January 12, 2009
8
0
Home Country
New Zealand New Zealand
I found another thread somewhere else that is talking about the delay was needed before you start playing the stream. it is DVB Owners Discussion Forum - dvbowners.com > Latest version of XBMC Script v0.63.

Thanks for that thread, I will try adding the delay into the xbmcplugin_list.py before the play starts:

...
ok = xbmcplugin.addDirectoryItem( handle=int( self._handle ), url=url, listitem=listitem, isFolder=False, totalItems=2 )
time.sleep(2)
xbmc.Player().play(result)
....

Let me know if I did something wrong, I am totally new to Python scripting. :)

I will try it tonight and possibly fiddle with the delay value to see how it goes.
 

Johnmen

Portal Member
January 12, 2009
8
0
Home Country
New Zealand New Zealand
I tested my modification, doesn't work at all. Guessing adding that "time.sleep(2)" line broke the Python script somehow.

However, my further research tells me that mainly the issue lies at my TV server side. I ran a Ethereal network monitor to capture the network conversations between the Xbox and TV server, I then found that the communication was going well until the point when xbmc.player() is run. My TV server has two IP addresses, despite that I have configured the main IP in the "plug-in settings", the mplayer insisted to stream rtsp data from my TV server's secondary IP address, which caused the connection failed. As soon as I disabled my TV server's secondary IP address, the live tv rtsp steam plays fine, and I don't get to see those two items (~~stop timeshifting and stream 1.0) anymore.

There are still two main issues:
1. ~~stop timeshifting doesn't work at all at my setup. No matter how many times I tried clicking the "~~stop timeshifting", and regardless where I run it from, the timeshifting is still going on TV server.

2. Once I start watching one of the TV channel, switching to any other channel will not change what is been streamed to Xbox, means the first channel's video will still being played at the moment you click any other channel. I think it is to do with the timeshifting cannot be stopped from Xbox.

PS, I just found that now I have more contents shown in the channel list. I used to only see the channel names, now I can also see the programs info following each channel names. That can be a incomplete EPG for me. :)
 
L

loetman

Guest
im Test it!

Hy guys, great Job!

i have tested the plugin with my XBOX and it work, but when i go back to the menu and click another Canel, comes the first Chanel on the beginning of the timeshifting.
also i can not stop timeshift with the 'stop timeshift' button.
i must stop Timeshift by stopping the MP TV Service.

Thanks!
 
L

loetman

Guest
@ Johnmen

Oh Sorry, i have not seen that you know this Problem.
when i better read i will see that!

greetings from switzerland!
 

graemef

Portal Pro
November 28, 2004
128
4
55
Perth
Home Country
Finally got a new play xbox (the other had all the smoke let out of it) and have put this on. I have the same problem as the others in that I cannot change channels once I have started watching one. Just goes back to the old channel, actually also doesn't go full screen either.
I do like the EPG feature after the channel name though, if I could get this to work would be about exactly what I want for an xbox client.
Cheers
 

swifty

Portal Pro
January 6, 2006
205
10
Home Country
United Kingdom United Kingdom
I'm trying to compile the debug client from the SVN files for this as I'm using the SVN of MP TVServer and because files have been updated the older (precompiled) version linked a few pages back doesn't work..

I managed to get over some compile errors and can now connect from XBMC but when I select live TV I get the following error in the debug client;

Code:
New Connection! Not listening for any new connections
Correct protocol, connection accepted!
Handling command; ListGroups
Exception while processing connection : System.NullReferenceException: Object re
ference not set to an instance of an object.
   at TVServerXBMC.Commands.ListGroups.handleCommand(String command, String[] ar
guments) in C:\Users\NSutton\Desktop\XBMCServer\XBMCServer\Commands\ListGroups.c
s:line 17
   at TVServerXBMC.ConnectionHandler.handleCommand(String command, String[] argu
ments) in C:\Users\NSutton\Desktop\XBMCServer\XBMCServer\ConnectionHandler.cs:li
ne 116
   at TVServerXBMC.ConnectionHandler.ProcessConnection(StreamReader reader) in C
:\Users\NSutton\Desktop\XBMCServer\XBMCServer\ConnectionHandler.cs:line 151
Connection closed
Anyone have any idea how I can get around that ?? I don't know much C so have been struggling a bit with this!

Cheers
 

80sman

Portal Pro
August 1, 2005
62
0
UK
Great work on this so far, I just have to finish building my htpc then I can give it a go. Would be great to get full functionality from my old xbmc install, could then use it as an extender in the bedroom.
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
Sorry I was away for a while guys, and even now I don't have too much time, but I have improved a couple of little things. The current timeshifting information is handled much better now. Stop timeshift is now a context menu on the "Current timeshift" item, which only shows up if there is a timeshift in progress now.

The latest SVN at this point should work fine. There are still some things to fix up before a "release" where we put out a compiled exe + dll + python script, but SVN is working fine.
 

Users who are viewing this thread

Top Bottom