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