TO GIBMAN- Fix on Build 19191 break stop on dvr-ms (2 Viewers)

iosub

Portal Pro
April 26, 2006
573
30
San Sebastian
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_Player.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_Player.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!
 

gibman

Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Usa
    Home Country
    Ethiopia Ethiopia
    Thanx Mate!

    I'll do that.

    /gibman
     

    Users who are viewing this thread

    Top Bottom