home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Preferred way to cancel a recording TVServerEvent
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kasimir9735" data-source="post: 1001315" data-attributes="member: 105881"><p>Hello, currently i am developing a plugin for the tvserver. In some situations i just want to stop a recording after it has begun. So i registered the TVServerEvents and catch beginning recordings with TvServerEventType.RecordingStarted. Now i stop the recording with the following code:</p><p> </p><p>[CODE=C#]// Get the recording</p><p>Recording beginningRecording = tvEvent.Recording;</p><p>// Get the card</p><p>VirtualCard card = tvEvent.Card;</p><p>// Stop the recording</p><p>card.StopRecording();</p><p>// Delete the recorded File</p><p>File.Delete(beginningRecording.FileName);</p><p>// Delete the recording entry</p><p>beginningRecording.Delete();</p><p>[/CODE]</p><p> </p><p>This works well. The recording stops and the file is gone. But with some exceptions:</p><p> </p><p>- The EPG shows still that the program is being recorded with the red recording Image. How can i tell the tvserver that this program ist currently not recording</p><p>- In the logfile of the tvserver there a lot of Errors after:</p><p> </p><p>Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:55:09.589946 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710</p><p>2013-06-10 18:55:09.590946 [scheduler thread(11)]: card: StopRecording subchannel null, skipping</p><p>2013-06-10 18:55:09.591947 [scheduler thread(11)]: Controller: epg start</p><p>2013-06-10 18:55:09.593951 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:55:24.669452 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:55:24.670453 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710</p><p>2013-06-10 18:55:24.670453 [scheduler thread(11)]: card: StopRecording subchannel null, skipping</p><p>2013-06-10 18:55:24.671450 [scheduler thread(11)]: Controller: epg start</p><p>2013-06-10 18:55:24.672450 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:55:39.723970 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:55:39.726970 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710</p><p>2013-06-10 18:55:39.727971 [scheduler thread(11)]: card: StopRecording subchannel null, skipping</p><p>2013-06-10 18:55:39.730965 [scheduler thread(11)]: Controller: epg start</p><p>2013-06-10 18:55:39.732974 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:55:54.887667 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:55:54.887667 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710</p><p>2013-06-10 18:55:54.889675 [scheduler thread(11)]: card: StopRecording subchannel null, skipping</p><p>2013-06-10 18:55:54.889675 [scheduler thread(11)]: Controller: epg start</p><p>2013-06-10 18:55:54.892669 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:56:10.014393 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife</p><p>2013-06-10 18:56:10.015319 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710</p><p>2013-06-10 18:56:10.015319 [scheduler thread(11)]: card: StopRecording subchannel null, skipping</p><p>2013-06-10 18:56:10.016319 [scheduler thread(11)]: Controller: epg start</p><p>Some ideas? Have i to update some more data like the schedule?</p></blockquote><p></p>
[QUOTE="Kasimir9735, post: 1001315, member: 105881"] Hello, currently i am developing a plugin for the tvserver. In some situations i just want to stop a recording after it has begun. So i registered the TVServerEvents and catch beginning recordings with TvServerEventType.RecordingStarted. Now i stop the recording with the following code: [CODE=C#]// Get the recording Recording beginningRecording = tvEvent.Recording; // Get the card VirtualCard card = tvEvent.Card; // Stop the recording card.StopRecording(); // Delete the recorded File File.Delete(beginningRecording.FileName); // Delete the recording entry beginningRecording.Delete(); [/CODE] This works well. The recording stops and the file is gone. But with some exceptions: - The EPG shows still that the program is being recorded with the red recording Image. How can i tell the tvserver that this program ist currently not recording - In the logfile of the tvserver there a lot of Errors after: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:55:09.589946 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710 2013-06-10 18:55:09.590946 [scheduler thread(11)]: card: StopRecording subchannel null, skipping 2013-06-10 18:55:09.591947 [scheduler thread(11)]: Controller: epg start 2013-06-10 18:55:09.593951 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:55:24.669452 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:55:24.670453 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710 2013-06-10 18:55:24.670453 [scheduler thread(11)]: card: StopRecording subchannel null, skipping 2013-06-10 18:55:24.671450 [scheduler thread(11)]: Controller: epg start 2013-06-10 18:55:24.672450 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:55:39.723970 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:55:39.726970 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710 2013-06-10 18:55:39.727971 [scheduler thread(11)]: card: StopRecording subchannel null, skipping 2013-06-10 18:55:39.730965 [scheduler thread(11)]: Controller: epg start 2013-06-10 18:55:39.732974 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:55:54.887667 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:55:54.887667 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710 2013-06-10 18:55:54.889675 [scheduler thread(11)]: card: StopRecording subchannel null, skipping 2013-06-10 18:55:54.889675 [scheduler thread(11)]: Controller: epg start 2013-06-10 18:55:54.892669 [scheduler thread(11)]: Scheduler: stop record did not succeed (trying again in 1 min.) Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:56:10.014393 [scheduler thread(11)]: Scheduler: stop record Fox HD 10.06.2013 18:36:01-10.06.2013 18:45:00 Good Wife 2013-06-10 18:56:10.015319 [scheduler thread(11)]: card: StopRecording card=2, user=scheduler38710 2013-06-10 18:56:10.015319 [scheduler thread(11)]: card: StopRecording subchannel null, skipping 2013-06-10 18:56:10.016319 [scheduler thread(11)]: Controller: epg start Some ideas? Have i to update some more data like the schedule? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Preferred way to cancel a recording TVServerEvent
Contact us
RSS
Top
Bottom