Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoFrame.prototype.toSeconds doesn't consider :FF #1

Open
pjdicke opened this issue May 6, 2014 · 0 comments
Open

VideoFrame.prototype.toSeconds doesn't consider :FF #1

pjdicke opened this issue May 6, 2014 · 0 comments

Comments

@pjdicke
Copy link

pjdicke commented May 6, 2014

For the toSeconds method to be more precise you should consider factoring in the framerate as well.

var time = SMPTE.split(':');
return (((Number(time[0]) * 60) * 60) + (Number(time[1]) * 60) + Number(time[2]) + Number(time[3]) / this.frameRate );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant