Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

CPU and FPS #19

Open
talltyler opened this issue Sep 30, 2016 · 1 comment
Open

CPU and FPS #19

talltyler opened this issue Sep 30, 2016 · 1 comment

Comments

@talltyler
Copy link

This library eats up CPU and isn't able to keep up with the frame rate of my browser (Chrome, MacBook Pro).

I addressed these issues in a fork for myself, mostly by rearranging how the requestAnimation loop relates to the timeupdate event and and cutting out events like canplay from firing every frame.

While working on this I also cut out all of the features that I didn't need (sorry) which is why I didn't make a formal PR but I wanted to share the code incase it helps anyone.

https://github.com/talltyler/html-canvas-video-player/blob/gh-pages/js/canvas-video-player.js

@Stanko
Copy link
Owner

Stanko commented Sep 30, 2016

Awesome, I will take a look and try to merge it to this repo as well.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants