Jump to content

Trouble in playing video in RPG Maker MV


HUAI
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...