chat girldetail 图集制作

This commit is contained in:
2025-09-19 15:19:59 +08:00
parent fb0a9abcce
commit 6ed9f82a6e
41 changed files with 1607 additions and 1508 deletions
+2 -2
View File
@@ -289,8 +289,8 @@ export class SDKManager { //extends Component
//region 播放背景视频 cbMap = {cbReady, cbEnded}
static PlayBgAudio(remoteUrl:string, vtype:VideoRoleType, loop:boolean = false, extra:any = {}) {
this.sdk.playBgAudio(remoteUrl, vtype, loop, extra);
static PlayBgAudio(remoteUrl:string, loop:boolean = false, extra:any = {}) {
this.sdk.playBgAudio(remoteUrl, loop, extra);
}
//添加要播放的表情视频
static AddEmoAudio(remoteUrl:string, vtype:VideoRoleType, loop:boolean = false, extra:any = {}) {
+2 -5
View File
@@ -643,17 +643,16 @@ export class WXSDK {
private curPlayType: VideoRoleType = VideoRoleType.None; //当前播放的视频的类型
playBgAudio(
remoteUrl: string,
vtype: VideoRoleType,
loop: boolean = false,
extra: any = {}
) {
if (this._bgVideo && this._bgShow) {
this.playBgAudioNext(remoteUrl, vtype, loop, extra);
this.playBgAudioNext(remoteUrl, loop, extra);
return;
}
let self = this;
console.log("微信 播放背景视频组件1", remoteUrl);
this.curPlayType = vtype;
//this.curPlayType = vtype;
if (!this._bgVideo) {
this._bgVideo = this.createVideoHandle();
// this._bgVideo.onPlay(() => {
@@ -694,13 +693,11 @@ export class WXSDK {
private _bgTempShow: boolean = false;
playBgAudioNext(
remoteUrl: string,
vtype: VideoRoleType,
loop: boolean = false,
extra: any = {}
) {
this.removeBgAudioNext();
console.log("微信 创建背景视频组件2--->", remoteUrl);
this.curPlayType = vtype;
let self = this;
if (!this._bgTempVideo) {
this._bgTempVideo = this.createVideoHandle();