Skip to content

Commit

Permalink
fix timeupdate logs (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
odedhutzler authored Jun 20, 2018
1 parent 2b21744 commit 9ba036f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/state/state-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ export default class StateManager {
* @returns {void}
*/
_doTransition(event: FakeEvent): void {
this._logger.debug('Do transition request', event.type);
if (event.type !== Html5EventType.TIME_UPDATE || (this._curState === StateType.BUFFERING && event.type === Html5EventType.TIME_UPDATE )){
this._logger.debug('Do transition request', event.type); // don't show most of 'timeupdate' events
}
let transition = this._transitions[this._curState.type];
if (typeof transition[event.type] === 'function') {
transition[event.type]();
Expand Down

0 comments on commit 9ba036f

Please sign in to comment.