From https://github.com/vagnervjs/frame-player