收藏
回答

unity 使用WX.CreateVideo看不到视频,但听到声音?

var video = WX.CreateVideo(new WXCreateVideoParam() {
    src = "http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400",
    controls = false,
    showProgress = false,
    showProgressInControlMode = false,
    autoplay = true,
    showCenterPlayBtn = false,
    underGameView = true, 
    loop = true,
    width = ((int)this.rTran_video.rect.width),
    height = ((int)this.rTran_video.rect.height),
});
Debug.Log($"width {this.rTran_video.rect.width}");
Debug.Log($"height {this.rTran_video.rect.height}");
video.OnPlay(() => {
    Debug.Log("video on play");
});
video.OnError(() => {
    Debug.Log("video on error");
});


回答关注问题邀请回答
收藏

1 个回答

  • ʚ风眠ɞ
    ʚ风眠ɞ
    01-04

    你好请问解决了么 我这边是播着突然画面消失 声音还在

    01-04
    有用
    回复
登录 后发表内容