fix: 视频优化
This commit is contained in:
parent
796c4c4171
commit
5efb9cd735
@ -42,7 +42,7 @@ struct VideoConfigPage {
|
||||
rocord_handle4: 0
|
||||
}
|
||||
// 文件操作
|
||||
private fileUtil: FileUtils
|
||||
private fileUtil!: FileUtils
|
||||
private context = getContext(this) as common.UIAbilityContext;
|
||||
// 视频控制器
|
||||
private controller1: VideoController = new VideoController()
|
||||
@ -94,7 +94,8 @@ struct VideoConfigPage {
|
||||
direction: FlexDirection.Column
|
||||
}) {
|
||||
HeaderComponent({
|
||||
shortLogo: false
|
||||
shortLogo: true,
|
||||
shouBackArea: true
|
||||
})
|
||||
Flex() {
|
||||
// 左边视频监控区域
|
||||
|
||||
@ -197,7 +197,7 @@ export async function takePhoto(
|
||||
const time = GetCurrentTime();
|
||||
const date = time.split(' ')[0];
|
||||
const dirName = dir || date;
|
||||
rtsp_server.detectVideoSnapshotSize(video_uri, fileName, true,(err: BusinessError, snapResult: record.RtspResult) => {
|
||||
rtsp_server.getVideoSnapshot(context, video_uri, fileName, dirName, true, (err: BusinessError, snapResult: record.RtspResult) => {
|
||||
if (snapResult && snapResult.errorCode === 0) {
|
||||
const result: takePhotoParam = {
|
||||
fileSize: snapResult.fileSize,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user