Commit f65d1af9 by yuananting

fix:题库录音调试(mac企微)

parent d30b490c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-03-18 10:01:28 * @Date: 2020-03-18 10:01:28
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-06-09 15:54:34 * @LastEditTime: 2021-06-09 16:06:20
* @Description: 录音组件 * @Description: 录音组件
*/ */
...@@ -86,13 +86,12 @@ class XMRecord extends Component { ...@@ -86,13 +86,12 @@ class XMRecord extends Component {
}; };
handleStartRecord = () => { handleStartRecord = () => {
alert("是企微", Platform.isWorkWx())
if(Platform.isWorkWx()) { // 企业微信 if(Platform.isWorkWx()) { // 企业微信
alert("进入")
WechatApi.startRecord({ WechatApi.startRecord({
success: function (res) { success: function (res) {
alert("开始录音", res) alert("开始录音", res)
this.mMediaRecorder = new AudioRecorder(res);
this.mMediaRecorder.start();
this.handleCountTime();
}, },
fail: function (res) { fail: function (res) {
alert("未开始录音", res) alert("未开始录音", res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment