Tellstick Pause 2.0 (1 Viewer)

moryoav

Portal Pro
December 2, 2008
236
86
Home Country
Israel Israel
Is it possible for you to create something so that I can put a repeat signal in TellstickPause? I have a problem when I pause or stop playing. Often need moore than one signal.

Ulf

A new version is available on post #1 with this feature... enjoy...

Version 2.1.2 Beta, 3-4-2010
1. The plugin can now repeat the number of signals sent by Tellstick. This is for people who have problems with range or have old receivers, etc., and need the signals sent more than once just to be sure that the receivers get the signal. Notice that since you need to wait about 500ms between events, repeating the signals a few times can take a while...
2. Fixed a bug where if you pressed pause and then play real quick without waiting for all the lights to turn on/off first, this would mess things up. So this now works. I'll make it more sophisticated in the next version.
 

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,641
    764
    Göteborg
    Home Country
    Sweden Sweden
    Unfortunately there's a problem with recorded TV.

    1. I did a fresh installation of MediaPortal 1.1.0 RC1 and installed only Tellstick Pause 2.1.2 and no other plugins.
    2. Configured only one setting in Tellstick Pause settings - Enabled "Use events for this device" in the Movies tab.
    3. Made a TV recording of a couple of minutes.

    MediaPortal crashes when playing the recording but the video keeps playing until I press Close Program.

    Error.log
    2010-04-04 22:53:11.816840 [ERROR][(13)]: MediaPortal: Unhandled exception occured
    2010-04-04 22:53:11.820840 [ERROR][(13)]: Exception :confused:ystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.ThrowHelper.ThrowKeyNotFoundException()
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at TellstickPauseProcess.TellstickPauseProcess.setLevelThread(String newLevel, MediaType mediaType)
    at TellstickPauseProcess.TellstickPauseProcess.<>c__DisplayClass1.<SetLevelForPlayback>b__0()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    2010-04-04 22:53:11.821840 [ERROR][(13)]: Exception :The given key was not present in the dictionary.
    2010-04-04 22:53:11.821840 [ERROR][(13)]: site :Void ThrowKeyNotFoundException()
    2010-04-04 22:53:11.821840 [ERROR][(13)]: source :mscorlib
    2010-04-04 22:53:11.822840 [ERROR][(13)]: stacktrace: at System.ThrowHelper.ThrowKeyNotFoundException()
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at TellstickPauseProcess.TellstickPauseProcess.setLevelThread(String newLevel, MediaType mediaType)
    at TellstickPauseProcess.TellstickPauseProcess.<>c__DisplayClass1.<SetLevelForPlayback>b__0()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()

    Tellstick Pause works normally when playing videos or Live TV.
     

    Attachments

    • stoppedworking.png
      stoppedworking.png
      25.3 KB

    moryoav

    Portal Pro
    December 2, 2008
    236
    86
    Home Country
    Israel Israel
    Unfortunately there's a problem with recorded TV.

    I think I may have found the problem.
    Please try this version and let me know if it works for you.
    The basic change: A new tab in the settings for Recordings which is separate from TV or Videos.
    It's a special case which needed special treatment...

    I cannot test this version right now (I'm at work)...:)
     

    Attachments

    • TellstickPause_2.1.3.zip
      30.7 KB

    moryoav

    Portal Pro
    December 2, 2008
    236
    86
    Home Country
    Israel Israel
    Unfortunately there's a problem with recorded TV.

    I think I may have found the problem.
    Please try this version and let me know if it works for you.
    The basic change: A new tab in the settings for Recordings which is separate from TV or Videos.
    It's a special case which needed special treatment...

    I cannot test this version right now (I'm at work)...:)

    Now that I got home and tested it... it didn't work... :).
    So I fixed it and tested it and it seems to be working now. I'm not putting it on post #1 for now, I would appreciate it if you could test it and see if it works for you... :D
     

    Attachments

    • TellstickPause_2.1.4.zip
      30.7 KB

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,641
    764
    Göteborg
    Home Country
    Sweden Sweden
    Thanks, we're doing progress.

    Using v2.1.4 on recordings, play and stop works fine but pause and unpause does nothing. I tried both On and Off mode for Pause and with/without For the Record plugin but result is the same.

    Hope the log file helps,
    Pause and unpause:
    2010-04-07 19:23:15.284219 [Debug][MPMain(1)]: VMR9: SetRepaint()
    2010-04-07 19:23:15.284219 [Debug][MPMain(1)]: TellstickPause 2.0(process): New Action: Paused
    2010-04-07 19:23:15.284219 [Debug][MPMain(1)]: TellstickPause 2.0(process): Paused
    2010-04-07 19:23:15.285219 [Debug][MPMain(1)]: TellstickPause 2.0(process): tellstick threading started, setting all devices to: pauseLevel
    2010-04-07 19:23:15.287219 [Debug][(20)]: TellstickPause 2.0(process): Number of devices: 1
    2010-04-07 19:23:15.288219 [Debug][(20)]: TellstickPause 2.0(process): device #:0 deviceID=-1
    2010-04-07 19:23:15.289219 [Debug][MPMain(1)]: TellstickPause 2.0(process): tellstick threading ended

    2010-04-07 19:24:00.828824 [Info.][(19)]: planescene:presentImage() frame:0 enabled:True allowed:False
    2010-04-07 19:24:00.829824 [Debug][MPMain(1)]: TellstickPause 2.0(process): New Action: Paused
    2010-04-07 19:24:00.830824 [Debug][MPMain(1)]: TellstickPause 2.0(process): New Action: Resumed
    2010-04-07 19:24:00.831824 [Debug][MPMain(1)]: TellstickPause 2.0(process): Resumed
    2010-04-07 19:24:00.831824 [Debug][MPMain(1)]: TellstickPause 2.0(process): tellstick threading started, setting all devices to: playLevel
    2010-04-07 19:24:00.833824 [Info.][(19)]: planescene:presentImage() frame:1 enabled:True allowed:False
    2010-04-07 19:24:00.834824 [Debug][MPMain(1)]: TellstickPause 2.0(process): tellstick threading ended
    2010-04-07 19:24:00.836824 [Debug][(15)]: TellstickPause 2.0(process): Number of devices: 1
    2010-04-07 19:24:00.836824 [Debug][(15)]: TellstickPause 2.0(process): device #:0 deviceID=-1
    2010-04-07 19:24:00.852825 [Info.][(19)]: planescene:presentImage() frame:2 enabled:True allowed:False
    2010-04-07 19:24:00.855826 [Debug][MPMain(1)]: VMR9: Repainting -> Playing, Frames: 3
     

    moryoav

    Portal Pro
    December 2, 2008
    236
    86
    Home Country
    Israel Israel
    Thanks, we're doing progress.

    Vuego, first of all, thank you so much for helping me debug this plugin!
    I would really appreciate it if you could send me your mediaportal.xml file, that's where the plugin's settings are saved. I suspect I know what the issue is.

    Thanks!
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,641
    764
    Göteborg
    Home Country
    Sweden Sweden
    Sure, thanks for updating the plugin :)
    I believe the old plugin also had this problem for recordings.

    Attached is my Mediaportal.xml. I didn't configure very much after the reinstallation of MediaPortal so it should be pretty default.
     

    Attachments

    • MediaPortal.xml
      30.6 KB

    moryoav

    Portal Pro
    December 2, 2008
    236
    86
    Home Country
    Israel Israel
    Sure, thanks for updating the plugin :)
    I believe the old plugin also had this problem for recordings.

    Attached is my Mediaportal.xml. I didn't configure very much after the reinstallation of MediaPortal so it should be pretty default.

    I'm not sure about this, I added a version here that may have fixed it. Things seem to be working for me fine anyhow.
    If it doesn't work, I also added to this version quite a lot of debug entries in the log, so if it doesn't work please send me the full logs for a session in which you only play a recording, pause, play and exit mp.

    I sure hope it'll work this time though, I apologize for the hard time... This is a tricky bug because it handles parts of the old code that I haven't really touched yet.
     

    Attachments

    • TellstickPause_2.1.5.zip
      30.7 KB

    Users who are viewing this thread

    Top Bottom