MCPcopy Create free account

hub / github.com/2234839/ai-nvr / functions

Functions788 in github.com/2234839/ai-nvr

MethodgetStatus
获取当前 PTZ 状态
src/ptz/index.ts:280
MethodgetStatus
获取所有摄像头状态
src/camera/manager.ts:142
MethodgetTopLabels
获取 Top-K 语义标签
src/ai/clip-service.ts:556
FunctiongetTrackFirstSeen
(trackId: number)
web/src/services/ws-detect-cache.ts:48
FunctiongetVersion
(cameraId: string)
web/src/services/ws-frame-cache.ts:29
MethodgotoHomePosition
回到初始位置
src/ptz/tplink-ptz.ts:155
MethodgotoHomePosition
()
src/ptz/index.ts:124
MethodgotoHomePosition
回到初始位置
src/ptz/index.ts:313
MethodgotoPreset
ONVIF 独有:跳转预置位
src/ptz/index.ts:150
MethodhasData
检查某 category 是否已有索引数据
src/storage/file-index.ts:239
Functioninfo
(message: string)
web/src/composables/useToast.ts:35
Methodinit
异步初始化:预下载 + 启动 Worker 加载模型
src/ai/clip-service.ts:273
MethodinitSegment
()
src/camera/h264-fmp4-muxer.ts:662
MethodinitSegment
获取当前 init segment
src/storage/fmp4-ring-buffer.ts:48
MethodinsertBatch
批量插入同一帧的多个目标位置
src/storage/track-trajectory.ts:80
MethodinsertPoint
插入一个轨迹采样点
src/storage/track-trajectory.ts:63
MethodinvalidateListCache
清除录像列表缓存
src/storage/recorder.ts:350
MethodinvalidateRoiCache
ROI 缓存失效(外部调用,当 ROI 数据变更时)
src/detection/motion.ts:200
FunctionisAuthEnabled
()
web/src/services/auth.ts:26
MethodisOnline
()
src/camera/h264-fmp4-muxer.ts:655
MethodisOnline
()
src/camera/jpeg-extractor.ts:144
FunctionisSafeWebhookUrl
(url: string)
src/utils/ssrf.ts:74
MethodlastFrameAt
()
src/camera/h264-fmp4-muxer.ts:667
MethodlastFrameAt
()
src/camera/jpeg-extractor.ts:148
MethodlastInitSegment
()
src/camera/h264-fmp4-muxer.ts:133
MethodlastMediaSegment
获取缓存的最近 media segment(新客户端首帧,按需合并)
src/camera/h264-fmp4-muxer.ts:139
MethodlastMediaSegment
获取缓存的最近 media segment(新客户端连接时立即显示画面)
src/camera/h264-fmp4-muxer.ts:665
Methodlength
当前缓冲的 segment 数量
src/storage/fmp4-ring-buffer.ts:124
Methodlist
获取某个摄像头的所有检测线段
src/storage/cross-lines.ts:67
MethodlistAll
获取所有标签(按摄像头分组)
src/storage/track-labels.ts:96
MethodlistAll
获取所有检测线段
src/storage/cross-lines.ts:75
MethodlistByLabel
获取某摄像头某类别的所有标签(如所有 person)
src/storage/track-labels.ts:104
MethodlistExports
列出所有导出文件 — 从 SQLite 索引查询
src/storage/export.ts:257
MethodlistRecordings
列出录像文件 — 从 SQLite 索引查询
src/storage/recorder.ts:355
Functionlogin
(token: string)
web/src/services/auth.ts:34
MethodmapRow
数据库行映射
src/alert/storage.ts:278
MethodmapRow
数据库行映射
src/observer/storage.ts:315
FunctionmeasureFps
()
web/src/composables/useFmp4Stream.ts:151
Functionmessage
(ws, raw)
src/api/index.ts:2827
Methodoff
移除指定事件的所有监听器
src/event-bus.ts:450
Methodon
订阅事件
web/src/services/events.ts:215
FunctiononBufferError
SourceBuffer error 事件处理
web/src/composables/useFmp4Stream.ts:527
FunctiononError
()
web/src/composables/useFmp4Stream.ts:183
FunctiononKeydown
全局键盘事件处理器
web/src/composables/useKeyboard.ts:30
FunctiononPause
()
web/src/composables/useFmp4Stream.ts:199
FunctiononPlaying
()
web/src/composables/useFmp4Stream.ts:195
FunctiononSourceOpen
()
web/src/composables/useFmp4Stream.ts:265
MethodonStateChange
监听连接状态变化
web/src/services/events.ts:97
FunctiononUpdateEnd
()
web/src/composables/useFmp4Stream.ts:544
FunctiononVisibilityChange
()
web/src/composables/useFmp4Stream.ts:777
FunctiononWaiting
()
web/src/composables/useFmp4Stream.ts:170
Methodpad
(n: number)
src/storage/recorder.ts:487
Methodpad
(n: number, w: number)
src/storage/export.ts:171
Methodpad
(n: number)
src/storage/snapshots.ts:71
Methodpatch
更新设置(部分更新,类型安全)
src/runtime-config.ts:474
FunctionplayAlertSound
播放提示音
web/src/composables/useNotification.ts:27
MethodposCoords
(pos: string)
src/storage/fmp4-writer.ts:170
FunctionprefRef
(key: string, defaultValue: T)
web/src/composables/usePreferences.ts:73
FunctionpruneBuffer
清除已播放的缓冲区,防止内存增长(只在定时器中调用,避免与 append 竞争)
web/src/composables/useFmp4Stream.ts:617
Methodpurge
清理过期记录
src/signal/store.ts:312
Methodpurge
清理超过指定天数的标签记录(由 StorageCleaner 调用)
src/storage/track-labels.ts:133
Methodpurge
清理过期缓存(超过 retentionDays 天的)
src/storage/thumbnails.ts:125
Methodpurge
清理超过指定小时的导出文件
src/storage/export.ts:368
Methodpurge
清理过期快照
src/storage/snapshots.ts:196
Methodpurge
清理过期记录
src/observer/storage.ts:302
MethodpurgeAll
删除所有标签记录,返回删除的行数
src/storage/track-labels.ts:126
MethodpurgeAll
删除所有缩略图缓存
src/storage/thumbnails.ts:120
MethodpurgeAll
删除所有录像文件
src/storage/recorder.ts:686
MethodpurgeAll
删除所有导出文件,返回删除的文件数量
src/storage/export.ts:363
MethodpurgeAll
删除所有轨迹数据,返回删除的行数
src/storage/track-trajectory.ts:175
MethodpurgeAll
删除所有快照数据,返回删除的文件数量
src/storage/snapshots.ts:188
MethodpurgeAll
* 删除所有追踪数据(快照文件 + 元数据),返回删除的记录数量
src/storage/tracks.ts:425
MethodpurgeAll
删除所有记录
src/observer/storage.ts:308
FunctionpushMatchSuggestion
(cameraId: string, suggestion: MatchSuggestion)
web/src/services/ws-detect-cache.ts:145
FunctionpushRuleMatch
(cameraId: string, notification: RuleMatchNotification)
web/src/services/ws-detect-cache.ts:314
FunctionpushZoneNotification
(cameraId: string, notification: ZoneNotification)
web/src/services/ws-detect-cache.ts:100
FunctionputDetections
(cameraId: string, dets: Detection[], inferMs?: number)
web/src/services/ws-detect-cache.ts:24
FunctionputFrame
(cameraId: string, jpeg: ArrayBuffer)
web/src/services/ws-frame-cache.ts:14
FunctionputLlmDescription
(cameraId: string, description: string, timestamp: number)
web/src/services/ws-detect-cache.ts:191
FunctionputPatrolStatus
(cameraId: string, status: PatrolStatus)
web/src/services/ws-detect-cache.ts:274
FunctionputRuleRegions
(cameraId: string, regions: RuleRegion[])
web/src/services/ws-detect-cache.ts:232
FunctionrafLoop
()
web/src/composables/useFmp4Stream.ts:25
MethodreadFilePart
* 读取文件指定范围(异步,用于 MP4 时长解析)
src/storage/storage-fs.ts:152
Methodreaddir
* 列出目录内容(异步)
src/storage/storage-fs.ts:164
MethodreaddirWithTypes
* 列出目录内容(带类型信息,异步)
src/storage/storage-fs.ts:171
MethodregisterExternalFile
* 外部进程(如 ffmpeg)写入完成后注册文件索引 * 用于录像文件、导出文件等不由 StorageFs.writeFile 写入的场景
src/storage/storage-fs.ts:213
FunctionregisterShortcut
(binding: KeyBinding)
web/src/composables/useKeyboard.ts:21
MethodrelativeMove
相对移动
src/ptz/tplink-ptz.ts:132
MethodrelativeMove
(delta: { x?: number; y?: number; zoom?: number })
src/ptz/index.ts:107
MethodrelativeMove
相对移动
src/ptz/index.ts:272
MethodreloadRules
()
src/observer/engine.ts:67
Methodremove
删除标签
src/storage/track-labels.ts:112
Methodremove
删除检测线段
src/storage/cross-lines.ts:155
Methodremove
删除单个追踪目标(包括快照文件)
src/storage/tracks.ts:410
MethodremoveByCategoryAndCamera
移除某个 category + cameraId 下所有文件索引
src/storage/file-index.ts:167
FunctionremoveFrameCache
(cameraId: string)
web/src/services/ws-frame-cache.ts:34
MethodremovePreset
ONVIF 独有:删除预置位
src/ptz/index.ts:161
MethodremoveRule
清理已删除规则的窗口状态
src/alert/window.ts:57
MethodrenameFile
* 移动/重命名文件,更新增量 + 索引
src/storage/storage-fs.ts:94
MethodresetCameraOverride
重置某个摄像头的覆盖
src/runtime-config.ts:514
← previousnext →601–700 of 788, ranked by callers