{"action":"opened","issue":{"url":"https://api.github.com/repos/jbavari/cordova-plugin-video-editor/issues/101","repository_url":"https://api.github.com/repos/jbavari/cordova-plugin-video-editor","labels_url":"https://api.github.com/repos/jbavari/cordova-plugin-video-editor/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/jbavari/cordova-plugin-video-editor/issues/101/comments","events_url":"https://api.github.com/repos/jbavari/cordova-plugin-video-editor/issues/101/events","html_url":"https://github.com/jbavari/cordova-plugin-video-editor/issues/101","id":177353511,"number":101,"title":"thumbnail creation","user":{"login":"sdjoyson","id":17044415,"avatar_url":"https://avatars.githubusercontent.com/u/17044415?v=3","gravatar_id":"","url":"https://api.github.com/users/sdjoyson","html_url":"https://github.com/sdjoyson","followers_url":"https://api.github.com/users/sdjoyson/followers","following_url":"https://api.github.com/users/sdjoyson/following{/other_user}","gists_url":"https://api.github.com/users/sdjoyson/gists{/gist_id}","starred_url":"https://api.github.com/users/sdjoyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdjoyson/subscriptions","organizations_url":"https://api.github.com/users/sdjoyson/orgs","repos_url":"https://api.github.com/users/sdjoyson/repos","events_url":"https://api.github.com/users/sdjoyson/events{/privacy}","received_events_url":"https://api.github.com/users/sdjoyson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T06:25:22Z","updated_at":"2016-09-16T06:25:22Z","closed_at":null,"body":"Help me to get video thumbnail from device local storage.\r\n\r\nvar videoTranscodeSuccess = function(result) {\r\n    // result is the path to the transcoded video on the device\r\n    myApp.alert('videoTranscodeSuccess, result: ' + result);\r\n  // result = /storage/emulated/0/Movies/toons/3434343.mp4\r\n  \r\n  VideoEditor.createThumbnail(\r\n      createThumbnailSuccess,\r\n      createThumbnailError,\r\n      {\r\n        fileUri: 'file://'+result,\r\n        outputFileName:'randomString1',\r\n        atTime: 2, // optional, location in the video to create the thumbnail (in seconds)\r\n        // width: 320, // optional, width of the thumbnail\r\n        // height: 480, // optional, height of the thumbnail\r\n        quality: 60 // optional, quality of the thumbnail (between 1 and 100)\r\n      }\r\n    );\r\n  }\r\n var createThumbnailSuccess = function(result) {\r\n    // result is the path to the jpeg image on the device\r\n    myApp.alert('createThumbnailSuccess, result:'+ result);\r\n    \r\n    var file = '/' + result;\r\n\r\n    localStorage.setItem('videoThumbnail', file);\r\n    myApp.alert(file);\r\n}"}}
{"actor":{"display_login":"sdjoyson"}}