* Push data into the queue. * @param data Parsed data from a player.
(data: PlayerLayerState)
| 33 | * @param data Parsed data from a player. |
| 34 | */ |
| 35 | push(data: PlayerLayerState) { |
| 36 | this.data.push(data); |
| 37 | if (!this.timeout) { |
| 38 | this.timeout = setTimeout(this.emptyCue.bind(this), UPDATE_RATE_MS); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Merge data, empty the queue, clear the timeout, and fire the callback. |
no outgoing calls
no test coverage detected