2012-03-23, 20:00
(2012-03-23, 18:22)Bstrdsmkr Wrote: If you're playing an incomplete file and seek past the downloaded portion, playback will end just like if the file was complete. OnPlaybackEnded() is even called =(
You'll have to calculate the equivalent play time you have downloaded based on the current file size and bitrate, then use min(requestedSeek, maxDownloaded -10) or etc (don't want to get so close to the end that the buffer is going to run out with normal playback). It's not a fun problem to solve.
BTW, thanks for your input. If I register the time the movie start playing and the total size, and later like every 10 seconds register time and size left, there should be a fairly good chance of calculating whats needed to resume...