home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
question about g_player.cs
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mattjcurry" data-source="post: 820330" data-attributes="member: 116338"><p>Can someone please tell me the difference between chapters and jumpPoints?</p><p></p><p>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.</p><p>[CODE]</p><p>else if (_autoComSkip && _jumpPoints != null && _player.Speed == 1)</p><p> {</p><p> double currentPos = _player.CurrentPosition;</p><p> foreach (double jumpFrom in _jumpPoints)</p><p> {</p><p> if (jumpFrom != 0 && currentPos <= jumpFrom + 1.0 && currentPos >= jumpFrom - 0.1)</p><p> {</p><p> Log.Debug("g_Player.Process() - Current Position: {0}, JumpPoint: {1}", currentPos, jumpFrom);</p><p></p><p> JumpToNextChapter();</p><p> break;</p><p> }</p><p> }</p><p> }</p><p>[/CODE]</p><p></p><p>Also I can see in LoadChapters that :</p><p>Read each line of the comskip file.</p><p>Split the line on the tab character.</p><p></p><p>It looks like it adds the jump points as the first token (this is where the commercial begins).</p><p>Then, it looks like it adds a chapter where the commercial ends (where regular TV begins).</p><p></p><p>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.</p><p></p><p>I was just hoping that someone could clarify how this works.</p><p></p><p>Thanks,</p><p></p><p>Matt</p></blockquote><p></p>
[QUOTE="mattjcurry, post: 820330, member: 116338"] 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; } } } [/CODE] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
question about g_player.cs
Contact us
RSS
Top
Bottom