I would like to display a video from a Javascript Blob/File object in the HTML5 video tag.
This code only works for small videos :
var reader = new FileReader();
reader.onload = function(e) {
document.getElementById("video").src=reader.result;
}
reader.readAsDataURL(vid);
I cannot use this for big videos (> 10MB).
Is there a solution to display a big video from a blob object in HTML 5?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…