fix(aiot): 删除实时视频模块
删除 views/aiot/video 和 api/aiot/video 目录, 撤回 auth.ts 中的菜单过滤逻辑。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
import { wvpRequestClient } from '#/api/aiot/request';
|
||||
|
||||
export namespace AiotVideoApi {
|
||||
/** 流信息 */
|
||||
export interface StreamInfo {
|
||||
app?: string;
|
||||
stream?: string;
|
||||
ip?: string;
|
||||
flv?: string;
|
||||
ws_flv?: string;
|
||||
rtmp?: string;
|
||||
hls?: string;
|
||||
rtsp?: string;
|
||||
mediaServerId?: string;
|
||||
tracks?: StreamTrack[];
|
||||
}
|
||||
|
||||
export interface StreamTrack {
|
||||
codec_id?: number;
|
||||
codec_id_name?: string;
|
||||
ready?: boolean;
|
||||
type?: number;
|
||||
width?: number;
|
||||
height?: number;
|
||||
fps?: number;
|
||||
}
|
||||
}
|
||||
|
||||
// ==================== 视频播放 API ====================
|
||||
|
||||
/** 开始播放 */
|
||||
export function playStart(deviceId: string, channelId: string) {
|
||||
return wvpRequestClient.get<AiotVideoApi.StreamInfo>(
|
||||
`/aiot/video/play/start/${deviceId}/${channelId}`,
|
||||
);
|
||||
}
|
||||
|
||||
/** 停止播放 */
|
||||
export function playStop(deviceId: string, channelId: string) {
|
||||
return wvpRequestClient.get(
|
||||
`/aiot/video/play/stop/${deviceId}/${channelId}`,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user