MediaClement在MediaCapture记录期间静音 [英] MediaElement is muted during MediaCapture record

查看:71
本文介绍了MediaClement在MediaCapture记录期间静音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写windows phone app。对于这个应用程序,我需要在使用相机拍摄时播放声音。

I'm writing windows phone app. For this app, I need to play a sound while capturing with camera.

所以我使用MediaElement进行音频和MediaCapture进行视频录制。

So I use MediaElement for audio and MediaCapture for video recording.

问题是,当我调用MediaCapture.StartRecordToStorageFileAsync时,音频始终静音。

The problem is that when I call MediaCapture.StartRecordToStorageFileAsync, the audio is always muted.

在捕捉过程中是否有播放音频的替代方法?

Is there any alternative to play audio during capture?

推荐答案

>>问题在于当我调用MediaCapture.StartRecordToStorageFileAsync时,音频总是静音,我认为这是为了减少干扰

>>The problem is that when I call MediaCapture.StartRecordToStorageFileAsync, the audio is always muted, I think this is for reducing interference

在我看来,像其他移动操作系统一样,在录制时音频,如果某些组件正在播放音频,它们将自动静音。

In my view, like other mobile OS, when recording audio, if some components are playing audio, they will be muted automatically.

>>在捕捉过程中有没有其他方法可以播放音频?

>>Is there any alternative to play audio during capture?

AFAIK,没有解决方法来完成此任务。

AFAIK, there is no workaround to accomplish this.


这篇关于MediaClement在MediaCapture记录期间静音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆