(data,isIn)
| 512 | $(".webrtcMsgBox").prepend('<div class="'+(isIn?"webrtcMsgIn":"webrtcMsgOut")+'">'+rtcMsgTime()+msg.replace(/[<>&]/g,function(a){return "&#"+a.charCodeAt(0)+";"}).replace(/ /g," ").replace(/[\r\n]/g,"<br>")+'</div>'); |
| 513 | }; |
| 514 | var rtcVoiceView=function(data,isIn){ |
| 515 | var id=RandomKey(16); |
| 516 | rtcVoiceDatas[id]=data; |
| 517 | $(".webrtcMsgBox").prepend('<div class="'+(isIn?"webrtcMsgIn":"webrtcMsgOut")+'" onclick="rtcVoicePlay(\''+id+'\')" style="cursor: pointer;">'+rtcMsgTime()+'<span style="color:#06c">语音</span> '+(data.duration/1000).toFixed(2)+'s</div>'); |
| 518 | }; |
| 519 | var rtcVoiceDatas={}; |
| 520 | var rtcVoicePlay=function(id){ |
| 521 | var audio=$(".recPlay")[0]; |
no test coverage detected
searching dependent graphs…