According to another program, I setup the video, and it was success in IOS.
Here is the reference.
var xhr = new XMLHttpRequest();
xhr.open("get", "/video/justForTest.mp4");
xhr.responseType = "arraybuffer";
xhr.addEventListener("load", function() {
var arrayBufferView = new Uint8Array(this.response);
var blob = new Blob([arrayBufferView], {type: "video/mp4"});
var url = window.URL.createObjectURL(blob);
document.getElementById("mobileAppVideo").src = url;
});
xhr.send();
Reference by https://github.com/meteor/meteor/issues/3229
I use this code to display a mp4 file, and I play it successfully.
But I don’t know how to setup a video for android mobile app, would you like to tell me a success method to play video in android?