如何在iOS上以内联模式(无全屏)的同时播放2-3-3个视频播放器?
如何检查? https://phaser.io/examples/v2/video/change-source
在Android /桌面视频中播放内联而无需点击,但在iOS视频上播放仅在点击后全屏播放该视频
答案 0 :(得分:0)
我找到了原生视频播放解决方案:https://github.com/bfred-it/iphone-inline-video
基于它为移相器制定解决方案:
var video = game.add.video('some_video');
...
video.mute = true; // muted videos play inline without user interaction
video.unlock(); // manual phaser unlock http://phaser.io/docs/2.4.2/Phaser.Video.html#unlock
video.video.setAttribute('playsinline', 'playsinline'); // for inline mode
video.play(true); // play that video with loop