修复工作
This commit is contained in:
@@ -70,8 +70,8 @@ const getDetails = async (deviceId) => {
|
||||
tableData.value = res.data;
|
||||
// 使用当前访问的域名和端口,通过Nginx代理访问视频流
|
||||
// 注意:RTSP URL需要原样传递,不要编码,&&&作为特殊分隔符
|
||||
// 不使用 ffmpeg=true,让系统自动选择 JavaCV 模式(兼容 HEVC)
|
||||
playUrl.value = `${window.location.origin}/live?url=${tableData.value.url}`;
|
||||
// 使用 ffmpeg=true,系统 FFmpeg 包含完整的编码器支持(包括 libx264)
|
||||
playUrl.value = `${window.location.origin}/live?url=${tableData.value.url}&&&ffmpeg=true`;
|
||||
console.log('播放地址:', playUrl.value);
|
||||
handlePlay();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user