修复工作
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user