Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gif image and mp4 video? #75

Open
xeoshow opened this issue Feb 27, 2024 · 0 comments
Open

Support gif image and mp4 video? #75

xeoshow opened this issue Feb 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@xeoshow
Copy link

xeoshow commented Feb 27, 2024

As below code shows, could it support bunny.gif and something like guide.mp4 video? Thanks a lot.

import { Layout } from "@pixi/layout";

new Layout({
    content: {
        content: Sprite.from("bunny.**gif**"),
        styles: {
            position: "center",
            maxWidth: "100%",
            minHeight: "100%",
        },
    },
    styles: {
        background: "red",
        position: "center",
        width: `100%`,
        height: `100%`,
    },
});

Tasks

Preview Give feedback
No tasks being tracked yet.
@xeoshow xeoshow added the enhancement New feature or request label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant