Fixes playing video in Firefox regression
Some improvements for playback resuming
Merge pull request #1926 from yurydelendik/fb

Improves video playback for Firefox
Merge pull request #1924 from mbebenita/master

Mixed bag of small optimizations.
Merge.