1银子
this.video = new egret.Video();
let url:string = "resource/assets/video/clip.mp4";
this.video.once(egret.Event.COMPLETE, this.onLoad, this);
this.video.once(egret.IOErrorEvent.IO_ERROR, this.onLoadErr, this);
this.video.load(url);
this.stage.addChild(this.video)
web端可以正常进onLoad 在安卓包上进的都是onLoadErr
|
|