Rebased from - https://github.com/pramodhkp/pdf.js/tree/videosupport