fix: 视频问题修复

This commit is contained in:
wangzhongjie 2025-06-13 10:15:33 +08:00
parent 2a8f8f65de
commit 9e9b34c0b4
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ struct Index {
async onPageShow(): Promise<void> { async onPageShow(): Promise<void> {
console.log("首页 onPageShow") console.log("首页 onPageShow")
await UseAuth(this.context) await UseAuth(this.context)
DifferentialAndSignal.init() // DifferentialAndSignal.init()
DifferentialAndSignal.onMsg(() => { DifferentialAndSignal.onMsg(() => {
console.log("外层接受") console.log("外层接受")
}) })

View File

@ -107,7 +107,7 @@ struct VideoConfigPage {
Video({ Video({
src: this.openFlag ? src: this.openFlag ?
`rtsp://${this.videoConfig.userName}:${this.videoConfig.pwd}@${this.videoConfig.ip}:${this.videoConfig.port}/h264/ch${Reflect.get(this.videoConfig, `rtsp://${this.videoConfig.userName}:${this.videoConfig.pwd}@${this.videoConfig.ip}:${this.videoConfig.port}/h264/ch${Reflect.get(this.videoConfig,
'port')}/main/av_stream` : '', item.td)}/main/av_stream` : '',
currentProgressRate: this.curRate, currentProgressRate: this.curRate,
controller: item.controller controller: item.controller
}) })