Разрешение видео: 480x360
Размер видео: 529KB
Android: 15 < /p>
Для тестирования я использую это приложение для тестирования веб -просвета, которое просто позволяет вам открывать URL в Android:
https://play.google.com/store/apps/deta ... 2&hl=en_us фрагмент/> и этот простой код видео воспроизведения:
Код: Выделить всё
class Example extends Phaser.Scene
{
constructor ()
{
super();
}
preload ()
{
console.log("Loading");
this.load.video('video_1', 'test_video.mp4', true);
this.video;
}
create ()
{
this.video = this.add.video(this.cameras.main.centerX, this.cameras.main.centerY, 'video_1');
this.input.on('pointerdown', () => {
this.video.play();
});
}
}
const config = {
renderer: Phaser.CANVAS,
width: 480,
height: 320,
scene: Example,
};
let game = new Phaser.Game(config);
< /code>
Видео работает нормально, если я откатываю версию Phaser: < /p>
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/794 ... pp-webview
Мобильная версия