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
Improvement Suggestions
Comskip chapter skipping
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="sunsetdk" data-source="post: 145439" data-attributes="member: 15617"><p><strong>Source</strong></p><p></p><p>I have added the method GetCommertials. This is suppose to be run when a film is started but i couldn't find that place in the source. This sub checks if there is a comskip file and if it is valid, if it is it will load all commertials from the file and saved in a array. I have added some code that check if getcommertials is executed with the same movie twice, this can be removed if the sub is only called once when a new movie starts. </p><p></p><p>When the user press up or down i want to check if a comskip file was found. </p><p></p><p>Again as i couldn't find the right place to put the getcommertials this is done a bit different, as i run this method each time the user press up or down.</p><p></p><p>But if commertials is found and the movie is in a block of commertials when the up button is pressed i skip to the end of the commertial block. If the used press back up to 10 sec after a commertial block i skip to the start of the commertials block.</p><p></p><p>Your implimentation looks good, but i see one problem with it as it always skips to the end of the next commertials block.</p><p></p><p>If comskip only found comertial block 1 and 3 in a show with 3 blocks, when you are on block 2 and press skip, you will end up at the end of block 3 which wasn't the point.</p><p></p><p>Don't take this a criticisms <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Ask if the source doesn't make sence.</p></blockquote><p></p>
[QUOTE="sunsetdk, post: 145439, member: 15617"] [b]Source[/b] I have added the method GetCommertials. This is suppose to be run when a film is started but i couldn't find that place in the source. This sub checks if there is a comskip file and if it is valid, if it is it will load all commertials from the file and saved in a array. I have added some code that check if getcommertials is executed with the same movie twice, this can be removed if the sub is only called once when a new movie starts. When the user press up or down i want to check if a comskip file was found. Again as i couldn't find the right place to put the getcommertials this is done a bit different, as i run this method each time the user press up or down. But if commertials is found and the movie is in a block of commertials when the up button is pressed i skip to the end of the commertial block. If the used press back up to 10 sec after a commertial block i skip to the start of the commertials block. Your implimentation looks good, but i see one problem with it as it always skips to the end of the next commertials block. If comskip only found comertial block 1 and 3 in a show with 3 blocks, when you are on block 2 and press skip, you will end up at the end of block 3 which wasn't the point. Don't take this a criticisms :) Ask if the source doesn't make sence. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Comskip chapter skipping
Contact us
RSS
Top
Bottom