Implement ringing audio. Add other audio tags.
This commit is contained in:
parent
ff567faeaa
commit
827e777079
13 changed files with 35 additions and 1 deletions
|
@ -43,8 +43,17 @@ module.exports = {
|
|||
this.setState({
|
||||
incomingCallRoomId: null
|
||||
});
|
||||
this.getRingAudio().pause();
|
||||
return;
|
||||
}
|
||||
if (call.call_state === "ringing") {
|
||||
this.getRingAudio().load();
|
||||
this.getRingAudio().play();
|
||||
}
|
||||
else {
|
||||
this.getRingAudio().pause();
|
||||
}
|
||||
|
||||
this.setState({
|
||||
incomingCallRoomId: call.roomId
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue