Merge pull request 'fix:提交视频文件mock数据' (#15) from wangzhongjie into main

Reviewed-on: #15
This commit is contained in:
wangzhongjie 2024-06-04 15:04:36 +08:00
commit 84dafffd17
3 changed files with 2 additions and 38 deletions

View File

@ -17,6 +17,7 @@ import {
} from '../common/service/indexService'; } from '../common/service/indexService';
import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl';
import promptAction from '@ohos.promptAction'; import promptAction from '@ohos.promptAction';
import { VideoConfigData } from '../mock';
@Entry @Entry
@Component @Component
@ -31,38 +32,7 @@ struct Index {
@State ratio: number = 1700 / 960 @State ratio: number = 1700 / 960
@State loading: boolean = true @State loading: boolean = true
@State fd: number = -1; @State fd: number = -1;
@State param: VideoConfig = { @State param: VideoConfig = VideoConfigData
videoNum: '1',
spls: '1',
wz: '0,0',
faceFlag: false,
shuiying: true,
pztd: '2',
ljlx: '',
ip: '192.168.36.94',
port: '554',
userName: 'admin',
pwd: '12345qwe',
td1: '1',
td2: '2',
td3: '3',
td4: '4',
videoRecord1: false,
videoRecord2: true,
videoRecord3: false,
videoRecord4: false,
text1: '',
text2: '',
text3: '',
dolt: '',
fontSize: '',
rlls: '1',
spzd4: false,
spzd3: false,
spzd2: false,
spzd1: false,
zdyz: '5',
}
fileHelper = null; fileHelper = null;
private interval = null; private interval = null;
private context = getContext(this) as common.UIAbilityContext; private context = getContext(this) as common.UIAbilityContext;

View File

@ -92,9 +92,4 @@ export default struct Index {
outClick() { outClick() {
} }
saveLog() {
// this.FileLog.initFileLogo('d .0ateLog')
// this.FileLog.createFile('123')
}
} }

View File

@ -34,7 +34,6 @@ struct Index {
{ key: '第三路' }, { key: '第三路' },
{ key: '第四路' }, { key: '第四路' },
] ]
private vocObj = null;
private fileUtil: FileUtil private fileUtil: FileUtil
private context = getContext(this) as common.UIAbilityContext; private context = getContext(this) as common.UIAbilityContext;
private controller1: VideoController = new VideoController() private controller1: VideoController = new VideoController()