Rectangle 27 0

html5 Display a video from a Blob Javascript?


function display(vid){

    var video = document.getElementById("video");
    video.src = window.URL.createObjectURL(vid);

}

@HubertGrzeskowiak it is a Blob or File object

I've found. It was so simple that I didnt even see it...

Is it only me who is still struggling with it? Sorry, not working for me.

What type is the vid parameter?

Note