-
Notifications
You must be signed in to change notification settings - Fork 38
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
undefined is not an object #12
Comments
How are you installing the plugin? What version are you installing? Are you waiting for deviceready before attempting to use the plugin? Are you testing this from a CLI/PGBuild build of the app? The plugin won't work on the PhoneGap Developer app. Can you share your config.xml/index.html files? |
Well I saw 2 errors that I have, I'm trying to Phonegap and I think I'm not expecting the "deviceready". Now, I try in the build.phonegap. I installed the plugin in Config.xml And in the index.html is only html, I work in index.js , this part of code. First I use the camera with camera.getPicture plugin to record video. the result I get it as URL and that URL is what happened as a parameter to PKVideoThumbnail plugin. But not if I do well or I access the plugin waiting for the "deviceredy" document.addEventListener("deviceready",onDeviceReady,false);
function getVideo(source, type) {
function correct(result){
function fail(error){
Please would be helpful if I explain what I'm doing wrong. Thank you |
A bit late, but use callbacks mode instead of promises. |
I need help with this error, I don't know that happend.
TypeError: undefined is not an object (evaluating 'window.PKVideoThumbnail.createThumbnail')
This is part of my code.
//called
window.PKVideoThumbnail.createThumbnail (video_path, thumbnail_path, correct, fail);
//success
function correct(result){
alert(result);
}
The text was updated successfully, but these errors were encountered: