云信发送消息相关

This commit is contained in:
XiuYun CHEN
2025-07-18 17:26:48 +08:00
parent f7408f7cbc
commit cbf50189cc
55 changed files with 4298 additions and 200 deletions
@@ -84,6 +84,75 @@ class VideoTools {
})
}
getVideoDetails(video_uuid:string)
{
this.hashMap.clear();
this.hashMap.set('video_uuid', video_uuid)
hdHttp.httpReq<string>(BasicConstant.videoDetail,this.hashMap).then(async (res: HdResponse<string>) => {
logger.info('Response videoDetail'+res);
let json:VideoDetailModel = JSON.parse(res+'') as VideoDetailModel;
if(json.video.polyv_uuid==null||json.video.polyv_uuid==undefined)
{
if(json.video.content!=null)
{
let content=json.video.content
let split = content.split("\"vid\" : ");
if (split.length<2){
split = content.split("'vid' : ");
if (split.length>1){
let split1 = split[1].split("'");
this.goPLVMediaPlayerOnlyVideoPage(split1[1],video_uuid)
}else {
promptAction.showToast({ message: '视频信息错误' })
this.goPLVMediaPlayerOnlyVideoPage('',video_uuid)
}
}else if(split.length>1){
let split1 = split[1].split("\"");
this.goPLVMediaPlayerOnlyVideoPage(split1[1],video_uuid)
}
}
else
{
promptAction.showToast({ message: '视频信息错误' })
this.goPLVMediaPlayerOnlyVideoPage('',video_uuid)
}
}
else
{
this.goPLVMediaPlayerOnlyVideoPage(json.video.polyv_uuid,video_uuid)
}
}).catch((err: BusinessError) => {
this.goPLVMediaPlayerOnlyVideoPage('',video_uuid)
})
}
async goPLVMediaPlayerOnlyVideoPage(vid:string,video_uuid:string)
{
const mediaResourcesResult = await runCatching(PLVMockMediaResourceData.getInstance().setupMediaResourcesFromLocal(vid,mockViewerParam))
if (mediaResourcesResult.success === false) {
promptAction.showToast({
message: `'视频数据初始化失败': ${mediaResourcesResult.error}`,
duration: seconds(3).toMillis()
})
return
}
const mediaResource = mediaResourcesResult.data[0]
router.pushUrl({
url:'pages/VideoPage/PLVMediaPlayerOnlyVideoPage',
params: {
video_uuid:video_uuid,
param:new PLVMediaPlayerSingleVideoPageParam(mediaResource)
}
})
}
}
export const videoTools = new VideoTools()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB