- 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.
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.