MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » MediaPortal 1 Talk


Reply
 
LinkBack Thread Tools Display Modes
Old 2009-02-01, 20:18   #171 (permalink)
Portal Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Excuse me for my dumb question, where can I find the SVN copy?
Johnmen is offline   Reply With Quote
Old 2009-02-01, 20:58   #172 (permalink)
Portal Member
 
Join Date: Feb 2008
Posts: 43
Thanks: 0
Thanked 3 Times in 3 Posts

Country:


Default

The SVN copy has to be manually compiled at the moment, and you have to check it out using the "Svn" command. I'd recommend waiting for a build if you do not have the SVN client / visual studio to compile it all.

The svn repository is:
URL: https://mp-plugins.svn.sourceforge.n...ins/XBMCServer
EvilDude is offline   Reply With Quote
Old 2009-02-01, 21:13   #173 (permalink)
Portal Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Thanks for the reply, looks like what needs to be done to get SVN working is a bit beyond my knowledge and ability, I will wait for a build.
Johnmen is offline   Reply With Quote
Old 2009-02-06, 14:43   #174 (permalink)
Portal Member
 
Join Date: Aug 2007
Age: 43
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default No dll

This is a very interesting thread.
So i downloaded the svn and compiled it with (after migration) vs2008.
No errors and a very quick build.

But in the /bin/release i only have an .exe no .dll.
Did i miss anything during my build?

For now i can play with my .exe, thats more than i ever had with my xmbc

Tia
John

After i changed my output type to "Class library" it generated a .dll.
Was this the correct way?

Last edited by dutchmatrix; 2009-02-06 at 14:46.. Reason: Maybe the solution
dutchmatrix is offline   Reply With Quote
Old 2009-02-06, 15:46   #175 (permalink)
jez
Portal Member
 
Join Date: Nov 2008
Location: Melbourne
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

@dutchmatrix: yes "class library" is the correct way. The exe can be run stand-alone in a console window, and its output can be used for debugging.
jez is offline   Reply With Quote
Old 2009-02-08, 10:38   #176 (permalink)
Portal Member
 
Join Date: Aug 2007
Age: 43
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Thanx for your Reply.

I compiled it as dll and it works.
Only a big problem with the timeshifting.
- First it wont stop timeshifting after i stop watching. (for this im gonna try the patch from redth)
- If i change channels, it wont play directly the new channel but plays the timeshift buffer which has the recording from the previous channel.
(This is a little annoying, but i have hope because it strongly relates to the first problem)

I also had a couple of times that the dll crashed, maybe if i add some more "try catch" i can tackle this.

But most important it's nice to play with the source.
dutchmatrix is offline   Reply With Quote
Old 2009-02-08, 15:51   #177 (permalink)
Portal User
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Slightly modified version

Hello!

This is my first post in the MediaPortal forum and first I want to thank EvilDude for working on this plugin and script.

I had some problems with this early version so I modified it a bit. I always return false from "IsTimeshifting", I remove Swedish letters (åäö) from program names and I have modified the rtsp URL returned to the client (I think I had to do that because om my VM ware installation). Here are a zip file containing the result if someone want to try it (use reflector if you are interested in the source). Now I can watch live TV but XBMC crash after about 10 minutes due to this bug that was fixed 5 days ago. I need a new XBMC SVN build...

Thanks again EvilDude and keep up the good work!

/ Tomas
Attached Files
File Type: zip TVServerXBMC.zip (12.2 KB, 133 views)
toso06 is offline   Reply With Quote
Old 2009-02-10, 11:00   #178 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 149
Thanks: 33
Thanked 1 Time in 1 Post

Country:


Default

toso06: What is the purpose of always returning false from IsTimeshifting?
I haven't had time to look at the source of the script yet, but I'm encountering a problem after viewing TV via XBMC - If I stop the video the timeshift still runs (unless you back out to the main tv-server menu and use the context menu to stop timeshifting)
Does your change alter this behaviour in any way?

The problem is I use multiple clients, so normally if I'm downstairs I get no free tuners because the client upstairs is still timeshifting even though the video had been stopped..
swifty is offline   Reply With Quote
Old 2009-02-10, 22:51   #179 (permalink)
Portal User
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Hello!

I don't know Python (only C#) so the script it hard for me to read but if IsTimeshifting returns true the server plugin won't get the TimeshiftChannel

command from the script.

If I always return false the client sends this sequence when I try to change the channel:
Handling command; IsTimeshifting
Handling command; TimeshiftChannel
PlayChannel result : rtsp://192.168.1.3/stream1.0

If I return true (when timeshifting has started) I get this when I try to change the channel:
Handling command; IsTimeshifting
Handling command; CloseConnection

My change to the rtsp URL was that I just return the server address:

// timeshift a channel and get the stream url
public static String playChannel(int chanId)
{
serverIntf.StopTimeShifting();
string rtspURL = "";

TvResult result = serverIntf.StartTimeShifting(chanId, ref rtspURL); // rtspURL contains a IP address for me

if (result != TvResult.Succeeded)
{
rtspURL = "[ERROR]:" + result.ToString();
}
else
{
// update globals
timeshiftUrl = rtspURL;
timeshiftChannel = chanId;

}

/ Tomas
toso06 is offline   Reply With Quote
Old 2009-02-10, 22:54   #180 (permalink)
jez
Portal Member
 
Join Date: Nov 2008
Location: Melbourne
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Quote:
Originally Posted by swifty View Post
toso06:
I haven't had time to look at the source of the script yet, but I'm encountering a problem after viewing TV via XBMC - If I stop the video the timeshift still runs (unless you back out to the main tv-server menu and use the context menu to stop timeshifting)
I think this is due to the way the timeshifting has to work. The plug-in doesn't know when you stop watching a video. This is why there's a "Stop Timeshifting" menu item, so you can do it manually.
jez 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Approved] IMDB.com (default info grabber) dukus Submit: Movie Info Grabbers 140 2009-02-14 00:17
Python Plugin? t-herweg Plugins & Erweiterungen 0 2007-10-20 23:25
XMLtv Channel tag Replacer Python script. gibman xmlTV 1 2007-09-04 19:55
Video thumbnails script MonsterM watch/edit Videos 5 2007-04-29 23:47


All times are GMT +1. The time now is 17:26.


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