提交 41022905 编写于 作者: C cold_yixiu

Merge branch 'master' of gitee.com:yygxr/xts_acts

......@@ -107,7 +107,7 @@ export default function CameraInputTest(surfaceId) {
}
}
describe('CameraManagerTest', function () {
describe('CameraInputTest', function () {
console.info(TAG + '----------CameraInputTest--------------');
beforeAll(async function () {
await applyPermission();
......
......@@ -237,7 +237,7 @@ export default function cameraJSUnitOutput(surfaceId: any) {
})
afterAll(function () {
await closeFd();
closeFd();
console.info('afterAll case');
})
......
......@@ -18,6 +18,8 @@ import image from '@ohos.multimedia.image';
import fileio from '@ohos.fileio';
import abilityAccessCtrl from '@ohos.abilityAccessCtrl'
import bundle from '@ohos.bundle'
import mediaLibrary from '@ohos.multimedia.mediaLibrary'
import media from '@ohos.multimedia.media'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index';
const TAG = "CameraUnitTest: ";
......@@ -27,6 +29,37 @@ let mCameraManager;
let photoSurfaceId;
let videoSurfaceId;
let mCameraDevicesArray;
let fdPath;
let fileAsset;
let fdNumber;
// 创建视频录制的参数
let videoProfile = {
audioBitrate: 48000,
audioChannels: 2,
audioCodec: 'audio/mp4a-latm',
audioSampleRate: 48000,
fileFormat: 'mp4',
videoBitrate: 48000,
videoCodec: 'video/mp4v-es',
videoFrameWidth: 640,
videoFrameHeight: 480,
videoFrameRate: 30
}
let videoConfig = {
audioSourceType: 1,
videoSourceType: 0,
profile: videoProfile,
url: 'file:///data/media/01.mp4',
orientationHint: 0,
location: { latitude: 30, longitude: 130 },
maxSize: 100,
maxDuration: 500
}
// 创建录像输出流
let videoRecorder
export default function cameraManagerTest(surfaceId: any) {
......@@ -231,7 +264,7 @@ describe('CameraManagerTest', function () {
})
afterAll(function () {
await closeFd();
closeFd();
console.info('afterAll case');
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册