I am using dropzonejs to drop file and then upload to server. I would like to achieve when the video file is dropped, then it should be able to play using html5 video. Here is where I tried,
this.on("addedfile", function(file, done) {
var addedFile = jQuery(this.files[0].previewElement);
if (file.type.match(/video.*/){
engageVideo(addedFile)
}
My plan(at engageVideo function) is to find the path of the file just added and use it to html5 video as a src. But in myDropzone instance of this file, I am not able to locate the url(path) of the file. Can I get help here ? Is there any better approach ?