Problem changing between dif. TV-cards (2 Viewers)

tompa

MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Home Country
    Sweden Sweden
    Thanks guys for your replays!

    I will look in to this tonight, but here is a quick reflection.

    I'm having on of my clients next to the server so I can watch sever behaviours, and it looks like its doing "the costly channel changes" on my setup (within the same MUX/TV-card). The timeshift is stopped and started over again, and this was not the behaviour earlier..

    You are doing something wrong?!
    My channel-switching durations (with last SVNs - self-compiled):

    on same transponder: ~1 second
    on other transponder: 2-3 seconds
    on other tvcard: 5-7 seconds
    Kuehnch, are you running multiseat?
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    tompa
    Maybe in your case (newCardId is equal _card.Id), so it will call the gplayer.stop method, which is only supposed to happen in the event of a change in DVB device.

    joboehl:
    Logging added, something like this;

    Code:
    //Start timeshifting the new tv channel
          TvServer server = new TvServer();
          VirtualCard card;
          bool _return = false;
    
          User user = new User();
          
          TvBusinessLayer layer = new TvBusinessLayer();
          int newCardId = -1;
          foreach (Card c in layer.Cards)
          {
              foreach (ChannelMap map in c.ReferringChannelMap())
              {
                  if (map.IdChannel == channel.IdChannel)
                  {
                     newCardId = c.IdCard;
                      break;
                  }
              }
              if (newCardId > -1) break;
          }
          if (newCardId != _card.Id && newCardId > -1) 
          {
                g_Player.Stop();
                MediaPortal.GUI.Library.Log.Info("new DVB device detected - new card id=" + Convert.toString(newCardId) + " old card id=" + Convert.toString(card.Id));
           }
           else
           {
                MediaPortal.GUI.Library.Log.Info("same DVB device detected.");
           }
     

    tompa

    MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Home Country
    Sweden Sweden
    @tompa
    Maybe in your case (newCardId is equal _card.Id), so it will call the gplayer.stop method, which is only supposed to happen in the event of a change in DVB device.
    How could I check this? Something changeable in database?
     

    tompa

    MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Home Country
    Sweden Sweden
    New logs

    Hi!
    Some problem again. Same senario (apart from 3 below) and SVN14521.
    Seems to behave unstable with my setup.

    2. ...
    3. Change to a channel on another MUX (second card) - first failed then at second try Ok.
    4. ...
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    When looking in the client's mediaportal.log I can see that.

    1) Initial channel change (SVT1). Result ok.
    2) Next channel change (SVT2).Result ok.
    3) Next channel change (TV4) on new DVB device. Result NOT ok.

    The IF statement below is apparently false, so g_Player.Stop() is not called.
    if (newCardId != _card.Id && newCardId > -1) g_Player.Stop();

    With some additional logging, we might figure it out.

    /Gibman
     

    joboehl

    Retired Team Member
  • Premium Supporter
  • July 30, 2006
    431
    4
    Home Country
    Brazil Brazil
    Please, those having problems with channel changing, try using SVN14582 or greater when it becomes available later today.

    It's not a fix, just additional logging to try to find what's happening.

    Also add if you are using single-seat or multiseat.
     

    tompa

    MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Home Country
    Sweden Sweden
    I will test that when its available, and add new logs if necessary.

    Thanks for your time guys!!
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    This might fix your problem Tompa.

    It's a more safe and faster way to get the new card id than it was before.

    /Gibman
     

    tompa

    MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Home Country
    Sweden Sweden
    Tried SVN14582 - Muliseat
    Senario as befor, and here are the logs.

    gibman
    I will test your patch next! I will only switch TVPlugin.dll right?
    Thanks!
     

    Users who are viewing this thread

    Top Bottom