11import BaseElement from "../components/BaseElement" ;
22import { createAudio , createDiv , createImg , createLabel , createVideo } from "../utils/domUtil" ;
33import { getCallOption } from "../utils/util" ;
4- import { hasClassName } from "../utils/domUtil" ;
54import CallButtons from "./CallButtons" ;
65import { classes } from "../css/styles.js" ;
76import PeriodicJob from "../modules/periodicJob" ;
@@ -38,9 +37,9 @@ export default class CallView extends BaseElement {
3837
3938 let connectionText ;
4039 if ( this . call . isVideoCall ) {
41- connectionText = 'Incoming video call…' ;
40+ connectionText = 'incoming video call…' ;
4241 } else {
43- connectionText = 'Incoming voice call…' ;
42+ connectionText = 'incoming voice call…' ;
4443 }
4544 this . connectionInfo = createLabel ( {
4645 id : 'conn_info_label' ,
@@ -50,7 +49,7 @@ export default class CallView extends BaseElement {
5049
5150 const peerStateDiv = createDiv ( { id : 'peer_state' , className : `${ classes [ 'column' ] } ${ classes [ 'peerStateDiv' ] } ${ classes [ 'invisible' ] } ` } ) ;
5251 const peerMuteIcon = createDiv ( { id : 'peer_mute_icon' , className : `${ classes [ 'peerMuteIcon' ] } ` } ) ;
53- const peerMuteLabel = createLabel ( { id : 'peer_mute_label' , className : `${ classes [ 'peerMuteLabel' ] } ${ classes [ 'fontSmall' ] } ${ classes [ 'fontColorWhite' ] } ` , innerText : `${ remoteUser . userId } audio muted this call ` } ) ;
52+ const peerMuteLabel = createLabel ( { id : 'peer_mute_label' , className : `${ classes [ 'peerMuteLabel' ] } ${ classes [ 'fontSmall' ] } ${ classes [ 'fontColorWhite' ] } ` , innerText : `${ remoteUser . userId } is muted. ` } ) ;
5453 peerStateDiv . appendChild ( peerMuteIcon ) ;
5554 peerStateDiv . appendChild ( peerMuteLabel ) ;
5655
@@ -227,7 +226,7 @@ export default class CallView extends BaseElement {
227226
228227 drawCallingText ( ) {
229228 this . removeConnectionInfoDrawer ( ) ;
230- const rotatingTexts = [ 'Calling ' , 'Calling .' , 'Calling ..' ] ;
229+ const rotatingTexts = [ 'calling ' , 'calling .' , 'calling ..' ] ;
231230 let frame = 0 ;
232231 this . connectionInfoDrawer = new PeriodicJob ( ( ) => {
233232 this . connectionInfo . innerText = rotatingTexts [ frame ] ;
@@ -237,7 +236,7 @@ export default class CallView extends BaseElement {
237236
238237 drawReconnectingText ( ) {
239238 this . removeConnectionInfoDrawer ( ) ;
240- const rotatingTexts = [ 'Reconnecting ' , 'Reconnecting .' , 'Reconnecting ..' ] ;
239+ const rotatingTexts = [ 'reconnecting ' , 'reconnecting .' , 'reconnecting ..' ] ;
241240 let frame = 0 ;
242241 this . connectionInfoDrawer = new PeriodicJob ( ( ) => {
243242 this . connectionInfo . innerText = rotatingTexts [ frame ] ;
0 commit comments