Giftig
January 7, 2025, 10:09am
1
Hi!
My game uses video display.
function CreateVideo(X, Y, Width, Height, IsLoop, VideoName)
{
var VideoTexture = CurrentScene.add.video(0, 0, VideoName);
VideoTexture.play(true);
VideoTexture.once('play', () =>
{
VideoTexture.setLoop(IsLoop);
VideoTexture.setOrigin(0, 0);
VideoTexture.setPosition(X, Y);
VideoTexture.setDisplaySize(Width, Height);
});
return VideoTexture;
}
The problem is that the browser’s system player starts to be displayed on the notification panel. How can I solve this?
Giftig
February 6, 2025, 3:09pm
3
I still haven’t found a solution to this problem
Giftig
February 15, 2025, 2:54pm
4
It’s sad that it will never help me. This is the official forum for the Phaser 3 engine, I was hoping for help here…
samme
February 15, 2025, 3:08pm
5
Which browser is it? I doubt Phaser can do much about it.
Giftig
February 15, 2025, 11:05pm
6
Yandex browser.
But this also appears in other browsers, including Google Chrome.
Giftig
February 15, 2025, 11:06pm
7
Are there other ways to play the video?
Qugurun
February 15, 2025, 11:27pm
8
Tell me, do you have a video with sound? If so, then you can use a trick.
Delete an audio track from the video. And run the audio as a separate element, in parallel with the video.
A video without an audio track does not create a control in the browser.
Giftig
February 16, 2025, 9:14am
9
Cool idea!
I tried it and it really works! Thank you very much!