diff --git a/www/webrtc/index.html b/www/webrtc/index.html index e8e4ebde..a2ec0d4f 100644 --- a/www/webrtc/index.html +++ b/www/webrtc/index.html @@ -64,8 +64,12 @@

- - + + +

+

+ +

@@ -185,6 +189,7 @@ player.on(ZLMRTCClient.Events.WEBRTC_ON_DATA_CHANNEL_MSG,function(event) { console.log('rtc datachannel 消息 :',event.data) + document.getElementById('msgrecv').value = event.data }); player.on(ZLMRTCClient.Events.WEBRTC_ON_DATA_CHANNEL_ERR,function(event) { @@ -237,7 +242,7 @@ function send(){ if(player){ //send msg refernece https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send - player.sendMsg(document.getElementById('msg').value) + player.sendMsg(document.getElementById('msgsend').value) } }