small fix for case when buffer size is larger then the actual availa…#225
small fix for case when buffer size is larger then the actual availa…#225gwaihir8 wants to merge 1 commit intosocib:masterfrom
Conversation
|
Thanks @gwaihir8!! I understand the problem, and it will fix some scenarios. But if we want to be precise, the buffer should be the minimum among the desired buffer size and the number of available indexes ahead of the player (that its more complex to compute, as it depends on steps, loop and upper and lower limit options). I think that another option could be to change the method Could you try if adding the check of arriving to the same initial index at |
…ble times
I hit a small bug when the configured buffer size was larger then length of the actual available times array. Some times when preloading the steps, the plugin keeps on firing the "waiting" event. Setting a Math.min on the buffer size , comparing with the _getMaxIndex() should fix it.