Implement ringing audio. Add other audio tags.

This commit is contained in:
Kegan Dougal 2015-07-17 16:42:16 +01:00
parent ff567faeaa
commit 827e777079
13 changed files with 35 additions and 1 deletions

View file

@ -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
});