- 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.
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
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