I want to play video by means of pixijs.
This code below is ok in normal project.
But if I put it in RPG Maker MV plugins, it can't play anything, or just play sound with still image.
function test(){
app = new PIXI.Application({
width: 600,
height: 600,
backgroundColor : 0x1099bb,
});
app.view.id = "test";
app.view.style.zIndex = 100;
app.view.style.position = "absolute";
app.view.style.margin = "auto";
app.view.style.top = "0px";
app.view.style.left = "0px";
app.view.style.right = "0px";
app.view.style.bottom = "0px";
document.body.appendChild(app.view);
var texture = PIXI.Texture.fromVideo('test.webm');
videoSprite = new PIXI.Sprite(texture);
app.stage.addChild(videoSprite);
}