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 bytesShould 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.
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.