修复工作

This commit is contained in:
2025-10-01 22:38:48 +08:00
parent fc88a11af3
commit 144fa7b423
3 changed files with 23 additions and 3 deletions

View File

@@ -69,8 +69,10 @@ const getDetails = async (deviceId) => {
const res = await getDevice(deviceId);
tableData.value = res.data;
// 使用当前访问的域名和端口通过Nginx代理访问视频流
// 注意RTSP URL需要原样传递不要编码&&&作为特殊分隔符
// 添加ffmpeg=true参数强制使用FFmpeg转换为FLV格式
playUrl.value = `${window.location.origin}/live?url=${tableData.value.url}&&&ffmpeg=true`;
console.log('播放地址:', playUrl.value);
handlePlay();
}