You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or define the default autoPlay state for VideoResource globally.
Problem:
When loading a video via bundle, a videoResource is created with autoPlay = true.
You have to manually pause the video, but the first opportunity is only after the video is already loaded and canplaythrough = true.
The video plays for a fraction of a second before pausing. The crux of the problem lies in the video sound. You hear it for a split second and then it stops.
You can work around this by manually handling the video bundle and creating a VideoResource, but this is not the desired solution.
The text was updated successfully, but these errors were encountered:
consttexture=awaitPIXI.Assets.load({src: "https://pixijs.com/assets/video.mp4",alias: "video",data: {// options to be passed to VideoResourceresourceOptions: {muted: true,autoPlay: false},},});
Description
Hello,
It would be very good if we could define additional options when loading assets from bundles.
i.e.
{ alias: "Example", src: "./video.webm", options: { autoPlay: false } }
Or define the default autoPlay state for VideoResource globally.
Problem:
When loading a video via bundle, a videoResource is created with autoPlay = true.
You have to manually pause the video, but the first opportunity is only after the video is already loaded and canplaythrough = true.
The video plays for a fraction of a second before pausing. The crux of the problem lies in the video sound. You hear it for a split second and then it stops.
You can work around this by manually handling the video bundle and creating a VideoResource, but this is not the desired solution.
The text was updated successfully, but these errors were encountered: