question about g_player.cs (1 Viewer)

mattjcurry

Retired Team Member
  • Premium Supporter
  • October 24, 2011
    261
    207
    44
    Can someone please tell me the difference between chapters and jumpPoints?

    I can see that if it is playing and autocomskip is enabled, then if the current position is ~= to jump point, then jump to the next chapter.
    Code:
    else if (_autoComSkip && _jumpPoints != null && _player.Speed == 1)
            {
              double currentPos = _player.CurrentPosition;
              foreach (double jumpFrom in _jumpPoints)
              {
                if (jumpFrom != 0 && currentPos <= jumpFrom + 1.0 && currentPos >= jumpFrom - 0.1)
                {
                  Log.Debug("g_Player.Process() - Current Position: {0}, JumpPoint: {1}", currentPos, jumpFrom);
    
                  JumpToNextChapter();
                  break;
                }
              }
            }

    Also I can see in LoadChapters that :
    Read each line of the comskip file.
    Split the line on the tab character.

    It looks like it adds the jump points as the first token (this is where the commercial begins).
    Then, it looks like it adds a chapter where the commercial ends (where regular TV begins).

    I guess I was under the impression that the commercials actually become their own chapters, but that does not appear to be the case. It looks like only the actual show is chapters and the commercials are the jump points to the beginning of the next chapter.

    I was just hoping that someone could clarify how this works.

    Thanks,

    Matt
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I guess I was under the impression that the commercials actually become their own chapters, but that does not appear to be the case. It looks like only the actual show is chapters and the commercials are the jump points to the beginning of the next chapter.

    Sorry for not spotting the thread earlier.

    Jump points are there so that if user manually changes between chapers he/she wont be landing on the beginning of the commercial break - no one would want such to happen.
     

    Users who are viewing this thread

    Top Bottom