debug 视频

This commit is contained in:
liuwei
2025-05-21 09:08:55 +08:00
parent 3e8ecce45a
commit 5c33c94d51
2 changed files with 2 additions and 3 deletions

View File

@@ -112,8 +112,7 @@ class VideoManPlugin(MessagePluginInterface):
return False, "视频下载失败"
# 发送视频
result = await self.bot.send_video_message((roomid if roomid else sender), Path(file_abspath),
Path(first_frame))
result = await self.bot.send_video_message((roomid if roomid else sender), Path(file_abspath))
self.LOG.info(f"发送视频结果: {result}")
return True, "发送成功"

View File

@@ -251,7 +251,7 @@ class MessageMixin(WechatAPIClientBase):
self.logging.info("开始发送视频: 对方wxid:{} 视频base64略 图片base64略 预计耗时:{}", wxid, predict_time)
async with aiohttp.ClientSession() as session:
json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Base64": vid_base64, "ImageBase64": image_base64,
json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Base64": vid_base64, "ImageBase64": "data:image/;base64"+image_base64,
"PlayLength": duration}
async with session.post(f'http://{self.ip}:{self.port}/api/Msg/SendVideo', json=json_param) as resp:
json_resp = await resp.json()