Defer pause while buffering, until buffering is finished
Extracted pauseIfDeferred method
Extracted timouttobuffering method to make tests clearer
Extraced sendtimeupdateevent to make tests clearer
Extracted assertState method to make tests clearer
Merge branch 'new-media-api' of https://github.com/fmtvp/tal into new-media-api