未验证 提交 78891c2f 编写于 作者: O openharmony_ci 提交者: Gitee

!3272 recorder format 同步master

Merge pull request !3272 from NOBUGGERS/OpenHarmony-3.2-Beta1
......@@ -10,6 +10,7 @@
{
"type": "ShellKit",
"run-command": [
"rm -rf /storage/media/100/local/files/Videos/COMPATIBILITY*"
],
"teardown-command":[
]
......
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......@@ -36,7 +36,7 @@ describe('AudioRecorderFormatCompatibilityTest', function () {
let audioRecorder;
let audioConfig = {
audioSourceType : media.AudioSourceType.AUDIO_SOURCE_TYPE_MIC,
audioEncoder : media.AudioSourceType.AAC_LC,
audioEncoder : media.AudioEncoder.AAC_LC,
audioEncodeBitRate : 22050,
audioSampleRate : 22050,
numberOfChannels : 2,
......@@ -85,14 +85,7 @@ describe('AudioRecorderFormatCompatibilityTest', function () {
let permissionName2 = 'ohos.permission.MEDIA_LOCATION';
let permissionName3 = 'ohos.permission.READ_MEDIA';
let permissionName4 = 'ohos.permission.WRITE_MEDIA';
await atManager.grantUserGrantedPermissi
on(tokenID, permissionName1, 1).then((result) => {
await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
console.info('[permission] case grantUserGrantedPermission success :' + result);
}).catch((err) => {
console.error('[permission] case grantUserGrantedPermission failed :' + err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册