Start Tv Channel from Plugin (1 Viewer)

DieBagger

Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    For the WifiRemote plugin it would be important to be able to start a Tv Channel on a MediaPortal client from a plugin (so a remote control client like aMPdroid/couchpotatoe can remotely start a channel).

    The TvPlugin has ALOT of logic when it starts a tv channel and I haven't found any public methods to start a channel. Is there some way for a plugin to start a tv channel or launch the TvPlugin so it automatically tunes into a channel?

    :D
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    So TVHome.ViewChannelAndCheck() doesn't work for you?

    [Edit: you may be able to borrow some code from MPStartIt]
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    So TVHome.ViewChannelAndCheck() doesn't work for you?

    [Edit: you may be able to borrow some code from MPStartIt]

    Hi,

    thx for the pointer, however I the following exception:
    2011-07-31 17:17:51.495465 [Info.][(25)]: TSReaderPlayer: Exception while creating DShow graph COM object that has been separated from its underlying RCW cannot be used.


    Full paste here: 2011-07-31 17:17:50.622415 [Info.][(25)]: TVHome.ViewChannelAndCheck(): View cha - Pastebin.com
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    So TVHome.ViewChannelAndCheck() doesn't work for you?

    [Edit: you may be able to borrow some code from MPStartIt]

    Hi,

    thx for the pointer, however I the following exception:
    2011-07-31 17:17:51.495465 [Info.][(25)]: TSReaderPlayer: Exception while creating DShow graph COM object that has been separated from its underlying RCW cannot be used.


    Full paste here: 2011-07-31 17:17:50.622415 [Info.][(25)]: TVHome.ViewChannelAndCheck(): View cha - Pastebin.com

    Ok, I think I found a way around this, I had to invoke the method on the gui context...

    It's only working when in the TvPlugin screen though, otherwise I get an exception and (if called twice in short time) a MediaPortal crash.
     

    Users who are viewing this thread

    Top Bottom