2011-10-18, 09:56
I think it's good idea to implement new way of search correct position in the video by using Half-interval/binary search algorithm. After this, you can skip backward or forward to limit down the position using binary search halving the skip time with each direction change.
Simple example: I want to find correct position in my video file. Lets assume that position is 275 seconds from start and configured default skip is 100 seconds.
I press button to jump 100 seconds forward. I notice that playback is not in the required position. I press again forward button and it skips another 100 seconds. I can still see that video is not in correct position. I press third time forward button to skip yet more 100 seconds. Then I can see that I skipped too much. And here is trick I want to use binary search to solve my problem - I press backward button and XBMC should skip 50 seconds back. When I see that video skipped too much backwards then I press forward and XBMC should skip 25 seconds forward. Next time when I start search XBMC should start using default initial skip length again.
(I am using XBMC with AppleTV and I started thread regarding this feature first here: http://forum.xbmc.org/showthread.php?tid=112514)
Simple example: I want to find correct position in my video file. Lets assume that position is 275 seconds from start and configured default skip is 100 seconds.
I press button to jump 100 seconds forward. I notice that playback is not in the required position. I press again forward button and it skips another 100 seconds. I can still see that video is not in correct position. I press third time forward button to skip yet more 100 seconds. Then I can see that I skipped too much. And here is trick I want to use binary search to solve my problem - I press backward button and XBMC should skip 50 seconds back. When I see that video skipped too much backwards then I press forward and XBMC should skip 25 seconds forward. Next time when I start search XBMC should start using default initial skip length again.
(I am using XBMC with AppleTV and I started thread regarding this feature first here: http://forum.xbmc.org/showthread.php?tid=112514)