- June 13, 2006
- 979
- 178
- Home Country
-
Belgium
- Thread starter
- #291
When I start the service manually it immediately stops again. Are there any logs I can look at ?
Check the Windows event viewer (eventvwr.exe). In the application log. Hopefully there's an error logged there that explains this...
----
Resolved with this procedure:
If you turn the plugin off in TVE3, move away from the overview screen (otherwise it will not have any effect), then move back, turn it back on, and once more move away from that screen (phew, complicated explanation ), THEN, my plugin will be reactivated in TVE3, and it should immediately sync if the option is turned on.
Note that even rebooting had not any effects.
I just realized there is no service dependency from the "TVService" service on the "TV Scheduler" service. So it's quite possible that on a reboot the TVService starts first, together with my plugin, and that TvScheduler simply isn't ready yet! That may explain what you saw, and also explains why this was fixed by the procedure above.
Perhaps I can add a small delay to my TVE3 plugin... The proper solution would be to add TvScheduler to the list of services that TVService depends on:
Use RegEdit.exe to edit the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TVService
And add "TvScheduler" (without the quotes) to the list.
----
1) How are conflicts handled?
They are not handled by TvScheduler. You do have the schedule priority setting to help with conflicts, but unfortunately TVE3 does not support priorities on schedules yet, so with my TVE3 plugin that won't help you until that is fixed.
i) Specifically what (if anything) does the TvScheduler know about tuner sources?
ii) What happens if >1 recording is scheduled on the same MUX, i.e. it [TVE3] could/should cope and record both/all.
There's absolutely no knowledge about tuner sources, no cards and no mux
iii) Does TvScheduler attempt to avoid conflicts where repeats are available (and rules setup such that a future episode is available) ?
It will not attempt this, however, I have these two methods on the drawing board:
Code:
/// <summary>
/// NOT IMPLEMENTED YET
/// </summary>
/// <param name="upcomingProgram"></param>
/// <returns></returns>
[OperationContract]
[FaultContract(typeof(TvSchedulerException))]
UpcomingProgram[] GetAlternativeShowings(UpcomingProgram upcomingProgram);
/// <summary>
/// NOT IMPLEMENTED YET
/// </summary>
/// <param name="upcomingProgram"></param>
/// <param name="alternativeUpcomingProgram"></param>
[OperationContract]
[FaultContract(typeof(TvSchedulerException))]
void RescheduleUpcomingProgram(UpcomingProgram upcomingProgram, UpcomingProgram alternativeUpcomingProgram);
These methods will offer the recording system an easy way to deal with schedules, making TvScheduler search for a good alternative, then activating that alternative instead of recording the original showing and record the other show that caused the conflict.
iv) What happens when no alternative available and there will be a genuined 'no tuner available' problem if conflicting shows were scheduled?
Again, this is really up to the recording system. All I can do is offer as much support as possible to try and avoid this situation.
2) I was reading about Freeview STB's the other day.
Some are beginning to have AR (Accurate Recording). Which means that the broadcaster sends a signal at the start and end of transmission and the STB's detects and adjust the schedule to avoid missing the start/end of the recording.
Are there any thoughts on how to integrate this into MediaPortal/TvSchedule.
Sorry, I don't know the technical details on how AR actually works.
AND I do realize this is something that would sit outside TvScheduler and instruct it.
But, nevertheless it's something to think about coping with..
Thanks.
Just a note to say I did not press cancel. I either clicked on another menu option or closed the form thinking the changes would be saved.
The next version will clear the menu when you are on a panel with "Ok" and "Cancel". That is more logical as it will force you to click one of the buttons to get back to where you came from
----
Another concept we introduced in MP-II is that its build around (internal) services.
I just read this on the home page about MediaPortal-II. Amusing to read this, especially since I was under the impression I failed to bring the design benefit of a service-oriented approach across a few weeks ago... Did someone see the light after all?