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
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
New feature - auto load next page
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="Rick164" data-source="post: 1131190" data-attributes="member: 17766"><p>Added preloading when user is near the end (offset 10) with proper nextPage check this time, a few issues that might need looking at but not that familiar with OnlineVideos code so those might be handled already:</p><p></p><p>- It loads NextPage() when difference between total items and current item index is 10 or lower however it will call it more than once if the user is scrolling fast enough or if the site takes a while, could add lock to prevent that or is this already handled by OnlineVideos NextPage method (check to see if loading for instance)?</p><p></p><p>- Loading icon is displayed, either needs a new method or parameter to skip load animation but doesn't look that bad atm as you have an indication if something is loading in the background.</p><p></p><p>- Jumps to new page item index but know where that one is coming from.</p><p></p><p>Let me know what you guys think <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Current code (also in first post): <a href="http://pastebin.com/uzEfMhHr" target="_blank">http://pastebin.com/uzEfMhHr</a></p><p></p><p>// Update</p><p></p><p>Too bad OV isn't on GitHub as it would made it easier to do an pull request but oh well with Google Code closing it will be there soon enough <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> , for now added the full code to this post with an test .dll which is based on the current SVN.</p><p></p><p>Had to change a few methods to allow for the item index to remain current and added a lock to the preload next page process just in case it does an extra load.</p><p>Still not completed of course but good enough for testing I hope, gonna see if the pre-loading process can be a bit smoother as now there's an UI delay (when appending new results).</p></blockquote><p></p>
[QUOTE="Rick164, post: 1131190, member: 17766"] Added preloading when user is near the end (offset 10) with proper nextPage check this time, a few issues that might need looking at but not that familiar with OnlineVideos code so those might be handled already: - It loads NextPage() when difference between total items and current item index is 10 or lower however it will call it more than once if the user is scrolling fast enough or if the site takes a while, could add lock to prevent that or is this already handled by OnlineVideos NextPage method (check to see if loading for instance)? - Loading icon is displayed, either needs a new method or parameter to skip load animation but doesn't look that bad atm as you have an indication if something is loading in the background. - Jumps to new page item index but know where that one is coming from. Let me know what you guys think :) Current code (also in first post): [URL]http://pastebin.com/uzEfMhHr[/URL] // Update Too bad OV isn't on GitHub as it would made it easier to do an pull request but oh well with Google Code closing it will be there soon enough ;) , for now added the full code to this post with an test .dll which is based on the current SVN. Had to change a few methods to allow for the item index to remain current and added a lock to the preload next page process just in case it does an extra load. Still not completed of course but good enough for testing I hope, gonna see if the pre-loading process can be a bit smoother as now there's an UI delay (when appending new results). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
New feature - auto load next page
Contact us
RSS
Top
Bottom