Hi all, I wanted to insert a video player in a layer and with the added Video player in 3.7 I wanted to used, I tried this:
var videoLayer = cc.Layer.extend({
ctor:function(){
this._super();
this.init();
},
init:function(){
this._super();
var video = new ccui.VideoPlayer("res/video/trailer.mp4");
video.setContentSize(480, 270);
video.setPosition(cc.winSize.width/2, cc.winSize.height/2);
video.setScale(1);
window.video = video;
this.addChild(video);
}
});
But only a black rectangle is shown, I tried converting the mp4 to ogg and webm (with miro video converter) but I have the same issue.
Can anybody help?

