These are chat archives for AxisCommunications/locomote-video-player

18th
Dec 2015
Andrey
@insonifi
Dec 18 2015 16:21
@drowzy, I added keepAlive parameter for Player. Disabled by default. Check my pull request when you have time. :)
Simon Thörnqvist
@drowzy
Dec 18 2015 16:33
Alright :)
Andrey
@insonifi
Dec 18 2015 17:17

What is motivation behind

destroy: function() {
      window.LocomoteMap[this.tag] = {
        __playerEvent: function () {},
        __swfReady: function () {}
      };
//...
}

And not assigning null. Since, if I initialise player again with same id. I'll never get new player:

// Instance already initialized. Return it.
    if (window.LocomoteMap[tag]) {
      return window.LocomoteMap[tag];
    }