javascript - Changing source in videos-js eating memory until leak -


i'm using video-js media player flash fallback dynamically play , change mp4-videos (h.264 - source available) on site i'm working on.

my problem is, every time i'm changing video/source, browser eats more , more memory until out of memory , crashes. problem occurs on every browser, flash player hardware acceleration enabled , disabled.

player initialized this:

            _v_.options.flash.swf = "../scripts/thirdparty/video-js.swf";             _v_.options.flash.iframemode = true; //false didn't             _v_.players = {};             _v_("main_video", { "techorder": ["flash", "html5"] }).ready(function () {                  $.b4dvideo.videoplayer = this;                 if (!$.b4dvideo.contentinitialised) {                     $.b4dvideo.contentinitialised = true;                     $.b4dvideo._loadcontent();                 }                 this.on("pause", function () {                     this.posterimage.show()                 });                 this.on("ended", function () {                     $.b4dvideo.videoplayer.pause();                     $.b4dvideo.videoplayer.currenttime(0);                     $.b4dvideo.videoplayer.pause();                     this.posterimage.show()                 });             }); 

and changing source of player

        if (!$.b4dvideo.videoplayer.paused()) {             $.b4dvideo.videoplayer.pause();          }         $.b4dvideo.videoplayer.currenttime(0);         $.b4dvideo.videoplayer.pause();          $.b4dvideo.videoplayer.src(videopath);          $.b4dvideo.videoplayer.play(); 

it looks flash player keeping whole video in memory , never releasing it. ideas on that? have tried using jwplayer - same problem :-(

update 1:

i created js-fiddle demonstrating issue... press play several times , watch memory http://jsfiddle.net/fwcjh/2/


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -