link given:
example.com/data/videos/videoname.mp4
how pass link fileinput?
var fileurl = window.url.createobjecturl(fileinput); all should done in javascript only. need solution in pure javascript not using jquery.
you can use ajax , blob
var url = 'http://example.com/data/videos/videoname.mp4'; var xhr = new xmlhttprequest(); xhr.open('get', 'blob:'+url, true); xhr.responsetype = 'blob'; xhr.onload = function(e) { if (this.status == 200) { var myobject = this.response; } }; xhr.send();
Comments
Post a Comment