admin管理员组文章数量:1387285
Hi everyone,
I'm reaching out for some help. I have a MOV video with an alpha channel (transparency). It plays perfectly on Windows, Linux, and Android, but I'm running into issues on Mac.
- Safari: On the first playback, the first frame flashes black or green instead of showing transparency. On subsequent playbacks, everything works fine.
- Chrome: The video doesn't play at all—only a blank rectangle appears.
I've tried the H.265 (HEVC with an alpha channel) and ProRes 4444 codecs, but the issue persists. Has anyone encountered a similar problem? I'd really appreciate any advice. Use Pixijs v8.8.1
Thanks a lot for your help!
const videoElement = document.createElement("video");
videoElement.src = "assets/video/output.mov";
videoElement.loop = false;
videoElement.muted = true;
videoElement.autoplay = false;
const videoSource = new VideoSource({
resource: videoElement,
autoPlay: false,
crossorigin: true,
playsinline: true,
preload: true,
updateFPS: -1,
alphaMode: "premultiplied-alpha",
});
videoSource.autoUpdate = false;
const videoTexture = new Texture(videoSource);
const videoSprite = new Sprite(videoTexture);
videoElement.play();
Tested various videoformats, options for the alphaMode parameter etc etc
本文标签: macosProblem play video with alpha canal on Mac Pixijs881Stack Overflow
版权声明:本文标题:macos - Problem play video with alpha canal on Mac Pixijs.8.8.1 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744523069a2610575.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论