Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

Trouble in playing video in RPG Maker MV

$
0
0

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);
}

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>