Commit 3a209ad1 authored by wangxuelai's avatar wangxuelai

''

parent 33ed3b34
...@@ -42,7 +42,7 @@ Component({ ...@@ -42,7 +42,7 @@ Component({
time: 0, time: 0,
upload: false upload: false
}, },
maxDuration: 180, maxDuration: 300,
duration: 0, duration: 0,
voiceDuration: 0, voiceDuration: 0,
showAuthSettingDia: false showAuthSettingDia: false
...@@ -153,7 +153,7 @@ Component({ ...@@ -153,7 +153,7 @@ Component({
wxAuthorize('scope.record').then(() => { wxAuthorize('scope.record').then(() => {
if (this.data.audioStatus.playStatus == 'no') { if (this.data.audioStatus.playStatus == 'no') {
recorderManager.start({ recorderManager.start({
duration: 300000, duration: that.data.maxDuration * 1000,
sampleRate: 8000, sampleRate: 8000,
numberOfChannels: 1, numberOfChannels: 1,
encodeBitRate: 20000, encodeBitRate: 20000,
......
...@@ -43,7 +43,7 @@ Component({ ...@@ -43,7 +43,7 @@ Component({
time: 0, time: 0,
upload: false upload: false
}, },
maxDuration: 180, maxDuration: 300,
duration: 0, duration: 0,
voiceDuration: 0, voiceDuration: 0,
showAuthSettingDia: false showAuthSettingDia: false
...@@ -138,7 +138,7 @@ Component({ ...@@ -138,7 +138,7 @@ Component({
wxAuthorize('scope.record').then(() => { wxAuthorize('scope.record').then(() => {
if (this.data.audioStatus.playStatus == 'no') { if (this.data.audioStatus.playStatus == 'no') {
recorderManager.start({ recorderManager.start({
duration: 300000, duration: that.data.maxDuration * 1000,
sampleRate: 8000, sampleRate: 8000,
numberOfChannels: 1, numberOfChannels: 1,
encodeBitRate: 20000, encodeBitRate: 20000,
......
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