Skip to content

how to send voice message? #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rising32 opened this issue Jan 15, 2020 · 1 comment
Open

how to send voice message? #35

rising32 opened this issue Jan 15, 2020 · 1 comment

Comments

@rising32
Copy link

rising32 commented Jan 15, 2020

stop = () => {
NimSession.endAudioRecord();
console.log('audio length = ', this.state.audioLength);
};

record = () => {
NimSession.onTouchVoice();
NimSession.startAudioRecord();
};

when I send voice message to server,
NimSession.sendAudioMessage(path, duration);

in here, please explain about path in detail.....

now in my app, it occurs record error - 录音失败,请重试

@hzlgit
Copy link
Member

hzlgit commented Apr 20, 2020

如果不是使用的原生的UI,就参照js-ui的分支。
录音的部分可以用nim的,也可以使用自定义的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants