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

captureVideoFrame is not a function. #4

Closed
sachinshah114 opened this issue Aug 6, 2018 · 2 comments
Closed

captureVideoFrame is not a function. #4

sachinshah114 opened this issue Aug 6, 2018 · 2 comments

Comments

@sachinshah114
Copy link

As I have seen in demo, I have set capture-video-frame.js file in my assets/js/capture-video-frame.js folder and I have load that js from index.js file. In browser I have check that js is load or not. And It's load fine.

I'm using your code in angular 4. And I got error like this.

ERROR TypeError: this.captureVideoFrame is not a function

When I remove this keyword from capturteVideoFrame , then it shows error with red underline.

The error message is this. -> Cannot find name 'captureVideoFrame'.

@ilkkao
Copy link
Owner

ilkkao commented Aug 11, 2018

If you use angular and build system you probably want to do it like this:

import captureVideoFrame from 'capture-video-frame';

const { blob, dataUri } = captureVideoFrame.captureVideoFrame(video, 'jpeg');

@sachinshah114
Copy link
Author

I'm closing this issue. Actually I have use other option. Thanks for the reply.

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

2 participants