Playback live tv from mythtv (1 Viewer)

rklootwijk

New Member
July 23, 2007
3
0
56
I am currently working on a plugin for MediaPortal for MythTV. The goal of the plugin is being able to use MythTV as a backend server handling live tv, recordings and a TV Guide. Reading info related to the recordings and playback of recordings already works, what I have problems with is getting Live TV to work. I am able to start live tv in MythTV from within MediaPortal. MythTV will create a file were it records the live tv in. This file will thus continuously grow. However when I start watching this file using the following code:
if (g_Player.Play(dirRecPath + "/" + livetvFileName))
{
GUIGraphicsContext.IsFullScreenVideo = true;
GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO);
g_Player.FullScreen = true;
}

If I am lucky I will see live TV for a few seconds and then it stops. It seems like the recording is playing for as long as there was video in the file at the time the play command is given, which is a few seconds at max. Watching the log files confirm this by the entry "VideoPlayer: Duration" and the a very short time that is logged.

Does anybody know how to play a file which is continuesly growing? I have seen some posts that seem related but I cannot figure out how to do it.

I am developing the plugin based on MP 0.2.2.

Cheers,
Rene.
 

ChristianW

Portal Member
October 9, 2006
13
8
Trondheim
Home Country
Norway Norway
Have you tried to use the stream from mythbackend instead of opening the file "manually". It may take a bit more coding, but you won't have to care about problems like that.

Christian...
 

rklootwijk

New Member
July 23, 2007
3
0
56
I thought nobody would respond, but at last:)

No I did not try to use the stream (file transfer) from MythTV. However, if I request to transfer the live TV stream via the mythtv protocol I would have to write the data in a file locally (on the MediaPortal frontend that is) in order to being able to timeshift, right? And then the same problem would occur. The My TV plugin actualy does the same, when timeshifting is enabled it writes the captured data in a file 'live.tv'. However, till now I have not been able to figure out how this file is being played.

Regards,
Rene
 

stilger

Portal Member
September 13, 2007
9
0
This plugin would be awesome. I have a MythTV machine and I can play the shows that are recorded using the pretty links that are created but a livetv/mythfrontend setup would be awesome.
 

Tisse

Portal Member
August 30, 2005
13
0
Home Country
Sweden Sweden
I use a Mythtv-backend on my linux-server and this would be great. For me it would be enough to use the TV guide and to handle the recordings. So if you have a plugin for that I would be very grateful!
 

Users who are viewing this thread

Top Bottom