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
|
@ -26,14 +26,27 @@ module.exports = React.createClass({
|
|||
displayName: 'IncomingCallBox',
|
||||
mixins: [IncomingCallBoxController],
|
||||
|
||||
getRingAudio: function() {
|
||||
return this.refs.ringAudio.getDOMNode();
|
||||
},
|
||||
|
||||
render: function() {
|
||||
if (!this.state.incomingCallRoomId) {
|
||||
return (
|
||||
<div></div>
|
||||
<div>
|
||||
<audio ref="ringAudio" loop>
|
||||
<source src="media/ring.ogg" type="audio/ogg" />
|
||||
<source src="media/ring.mp3" type="audio/mpeg" />
|
||||
</audio>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className="mx_IncomingCallBox">
|
||||
<audio ref="ringAudio" loop>
|
||||
<source src="media/ring.ogg" type="audio/ogg" />
|
||||
<source src="media/ring.mp3" type="audio/mpeg" />
|
||||
</audio>
|
||||
<div className="mx_IncomingCallBox_avatar">
|
||||
<img src="img/voip.png" width="42" height="42"/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue