View Single Post
Old 2008-06-01, 03:14   #1 (permalink)
iosub
Portal Member
 
Join Date: Apr 2006
Location: San Sebastian
Posts: 424
Thanks: 7
Thanked 20 Times in 13 Posts

My System

Default TO GIBMAN- Fix on Build 19191 break stop on dvr-ms

Hi Gibman the fix on build 19191 breaks stop on playing drv-ms files, so drv-ms files are not able to stop

"recorded TV would not resume from last point in timeline from previous viewing session. This bug only happens when using the unsupported feature 'avoid using RTSP in multiseat'."

I don't know why but .dvr-ms files are treated as tv "recordings" when using Tvpluging, so on the code changed that you have made on tvrecorded.cs

private void OnPlayRecordingBackStopped(MediaPortal.Player.g_Pl ayer.MediaType type, int stoptime, string filename)
{
Log.Info("TvRecorded:OnStopped {0} {1}", type, filename);
if (type != g_Player.MediaType.Recording) return;

if (filename.Substring(0, 4) == "rtsp")
{
filename = g_Player.currentFileName;
}
else if (!TVHome.UseRTSP()) // only keep the filename
{
FileInfo f = new FileInfo(g_Player.currentFileName);--------------------- THIS LINE MAKE AND EXCEPTION ON DVR-MS FILES because is g_Player.currentFileName is emptly
filename = f.Name;
}




so I have change the code to:

private void OnPlayRecordingBackStopped(MediaPortal.Player.g_Pl ayer.MediaType type, int stoptime, string filename)
{
Log.Info("TvRecorded:OnStopped {0} {1}", type, filename);
if (type != g_Player.MediaType.Recording) return;

if (filename.Substring(0, 4) == "rtsp")
{
filename = g_Player.currentFileName;
}
else if (!TVHome.UseRTSP()) // only keep the filename
{
if (g_Player.currentFileName != "")
{
FileInfo f = new FileInfo(g_Player.currentFileName);
filename = f.Name;
}
else
{
FileInfo f = new FileInfo(filename);
filename = f.Name;
}
}



Can you and the code?

Thanks!
iosub is offline   Reply With Quote