Prefetcher max duration reached when video is ended

You must Login before you can answer or comment on any questions.

If a video is finished this will go on for an unknown (probably unlimited) amount of time:

Like every second I get this message in console:

[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
[INFO][Prefetcher(   34)] max duration reached, size = 81027 bytes
Should I be worried about this? Causes this memory leaks or something?

Maybe good to know: I use for testing a video which is 4minutes26 seconds. I scroll the video to the end. If the video is ended, an view wil popup (fullscreen) so you can't see the video anymore. But the video had ended because it was scrolled to the end of the video.

— asked 8 months ago by Jesse R
1 Comment
  • can you explain what you want to achieve and what is the code written for this.. where you get this at every second.

    — commented 8 months ago by Ashish Nigam

1 Answer

I accidentally removed activeMovie.release();

Now I've put it back and it works fine.

So it's now:

activeMovie.addEventListener('complete', function(d) {
 
    if(d.reason === Titanium.Media.VIDEO_FINISH_REASON_PLAYBACK_ENDED) {
        Ti.include(r+'ui/tests/test1.js');
        win2.add(tView[(e.source.index)-1]);
        win2.open();
        activeMovie.hide();
        activeMovie.release();
        activeMovie = null;
    };
});

Your Answer

This question has been locked and cannot accept new answers.