删除无用代码

This commit is contained in:
lxj
2025-08-27 20:40:49 +08:00
parent a43cb1b390
commit 6ada18b28b
47 changed files with 55 additions and 105749 deletions

View File

@@ -2,7 +2,12 @@
<Page class="h-full w-full">
<!-- 设备分组区域 -->
<div class="flex h-full gap-[8px]">
<ChannelTree class="h-full w-[300px]" @check="onNodeChecked" />
<div class="h-full pb-[5px] c-tree bg-background">
<ChannelTree
class="w-[300px]"
@check="onNodeChecked"
/>
</div>
<!-- 设备分组区域 -->
<div class="bg-background flex-1">
@@ -287,13 +292,12 @@ function streamProxy(nodeData: any, cb: Function) {
pwd: nodeData.devicePwd,
channelId: nodeData.channelNo,
};
if (isSupportH265) {
addStreamProxy(params).then((res) => cb(res));
} else {
// addFFmpegStreamProxy(params).then((res) => cb(res));
addStreamProxy(params).then((res) => cb(res));
}
}
if (isSupportH265) {
addStreamProxy(params).then((res) => cb(res));
} else {
addFFmpegStreamProxy(params).then((res) => cb(res));
// addStreamProxy(params).then((res) => cb(res));
}
}
@@ -306,7 +310,7 @@ function doPlayer(nodeData: any, index: number = 0) {
console.log('index=', index);
if (mpegts.isSupported()) {
streamProxy(nodeData, (res: AddStreamProxyResult) => {
const url = res.flv;
const url = res.wsFlv;
// 将url 绑定到 nodeData
nodeData.url = url;
closePlayer(index);