RemoteControl.Instance.IsAnyCardRecording() (1 Viewer)

lar282

Portal Pro
July 11, 2004
414
2
Hi
When using the function
RemoteControl.Instance.IsAnyCardRecording()
from a plugin it doesn't work. Worked for me in RC1 but not RC2


regards

//Lasse
 

infinite.loop

Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,163
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    erm.....

    that is not really a useful bugreport with that amount of info.....
    since you are allready a "coder" cant you debug the issue? :)
     

    lar282

    Portal Pro
    July 11, 2004
    414
    2
    coder?

    njae, wont call myself coder...

    well the thing is that it looks like the recording ENDS, and tvservice sends out a mess about the recording ended, BUT it wont release the cards until later. So if u ask the service if it is recording it tells u YES. One can see it in the log pretty clearly. I added the line isanycardrecording=True from the plugin and it gets there using the
    case TvServerEventType.RecordingEnded:


    2008-08-15 14:56:14.250000 [9]: ComSkipLauncher: Recording ended (\\192.168.0.192\recorded_tv\2008-08-15-14_30 Disney Channel Brandy & Herr Morris.ts on Disney Channel), launching program (C:\Program Files\Comskip\RuncomSkip.bat "\\192.168.0.192\recorded_tv\2008-08-15-14_30 Disney Channel Brandy & Herr Morris.ts" "Disney Channel") ...
    2008-08-15 14:56:24.296875 [9]: isanycardrecording=True
    2008-08-15 14:56:45.437500 [9]: ConflictManager: Updating conflicts list
    2008-08-15 14:56:45.437500 [9]: Schedules List built 0 ms
    2008-08-15 14:56:45.500000 [9]: ConflictManager: Update done within 62,5 ms
    2008-08-15 14:56:45.500000 [9]: Scheduler: stop record Disney Channel 2008-08-15 14:54:49-2008-08-15 14:55:00 Brandy & Herr Morris
    2008-08-15 14:56:45.515625 [10]: card: StopRecording 2
    2008-08-15 14:56:45.515625 [10]: card: StopRecording for card:2
    2008-08-15 14:56:45.515625 [10]: subch:0 StopRecord()
    2008-08-15 14:56:45.562500 [10]: card: remove user:scheduler16 sub:0
    2008-08-15 14:56:45.562500 [10]: user:scheduler16 remove
    2008-08-15 14:56:45.562500 [10]: card: free subchannel sub:0
    2008-08-15 14:56:45.578125 [10]: tvcard:FreeSubChannel:1 #0
    2008-08-15 14:56:45.578125 [10]: DVB subch:0 Decompose()
    2008-08-15 14:56:45.578125 [10]: tvcard:FreeAllSubChannels:
    2008-08-15 14:56:45.578125 [10]: dvb:confused:topGraph
    2008-08-15 14:56:46.078125 [10]: tvcard:FreeAllSubChannels:
    2008-08-15 14:56:46.093750 [4]: Controller: SetChannelStates for 21 channels


    Anyway, I tried something and it works.....

    in scheduler.cs line 678 moved to line 702

    _tvController.Fire(this, new TvServerEventArgs(TvServerEventType.RecordingEnded, new VirtualCard(_user), _user, recording.Schedule, recording.Recording));

    It should not fire the event until its done. So if u move that line to the bottom all works again.

    //Lasse
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    I'll move it as u described thx.


    ...<snip>...

    Log.Write("Scheduler: stop record {0} {1}-{2} {3}", recording.Channel.Name, recording.RecordingStartDateTime, recording.EndTime, recording.Schedule.ProgramName);
    _controller.StopRecording(ref _user);
    _tvController.Fire(this, new TvServerEventArgs(TvServerEventType.RecordingEnded, new VirtualCard(_user), _user, recording.Schedule, recording.Recording));
    }
    catch (Exception ex)
    {
    Log.Write(ex);
    }

    /gibman
     

    Users who are viewing this thread

    Similar threads

    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem - unable to connect to any of the specified MySQL hosts. And Hostname is still in red. I don't understand - this is a dedicated TV computer. Unless an update did this I don't know why there's a problem in the...
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem -...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    2
    Views
    366
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP and set logs and rebooted and ran TVServer. Didn't do anything in regard to S Loopback adapter. I've been using NextPvr since the problem became insurmountable. Only reason it's not a good long term...
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    24
    Views
    1K
    TVE 3,5 as you noticed in my other Thread.
    TVE 3,5 as you noticed in my other Thread.
    Hello Folks, Although the New MediaPortal Version 2.5 looks great so far, it seems that it still has major Bugs? I created a...
    Replies
    2
    Views
    389
    I had the same issue and found the executable under C:\ProgramData\Team MediaPortal\MediaPortal\skin\Titan\BasicHome.Editor\TitanEditor.exe Only the shortcut was missing.
    I had the same issue and found the executable under C:\ProgramData\Team...
    Hi all, Not a rant, more a sharing of experience (maybe hoping to get some clarification on which wrong turn I took) It has been...
    Replies
    9
    Views
    1K
    MP1 MP2 MP2 - V2.4.1 MP2 Stopped powering down DE
    Make sure the "Configure Windows Energy Saving" settings in MP2 have not changed >Settings/General/System, they should be as in the screenshot below. Failing that you should check in Windows "Power Options" itself that everything is as it should be.
    Make sure the "Configure Windows Energy Saving" settings in MP2 have not changed >Settings/General/System, they should be as in the...
    Hi, MP2 (V:2.41.1) has been working fine for ages. I have the PowerScheduler set to power off after 10min, but now it doesn't...
    Replies
    1
    Views
    722
    Top Bottom