提交 63f0c029 编写于 作者: L lwx1121892

modify ContentType

Signed-off-by: Nlwx1121892 <liuxueqi3@huawei.com>
上级 805e93a3
......@@ -92,8 +92,8 @@ describe('audioInterrupt', function () {
}
var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
content: audio.ContentType.CONTENT_TYPE_MUSIC,
usage: audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags: 0
}
......
......@@ -10,7 +10,7 @@
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.info(TAG +
* limitations under the License.
*/
import audio from '@ohos.multimedia.audio';
import fileio from '@ohos.fileio';
......@@ -137,7 +137,7 @@ export default {
});
console.info(TAG + 'AudioFrameworkRenderLog: Renderer after read');
await sleep(3000);
// await audioRen.drain().then(async function () {
await audioRen.drain().then(async function () {
console.info(TAG + 'AudioFrameworkRenderLog: Renderer drained : SUCCESS');
let wantInfo = {
want:
......@@ -154,9 +154,9 @@ export default {
console.info(TAG + 'terminateSelf ==================================== fail')
})
// }).catch((err) => {
// console.error('AudioFrameworkRenderLog: Renderer drain: ERROR : ' + err.message);
// });
}).catch((err) => {
console.error(TAG + 'AudioFrameworkRenderLog: Renderer drain: ERROR : ' + err.message);
});
},
onDestroy() {
console.log(TAG1 + 'onDestroy');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册