视频通话
parent
0535b2c7ae
commit
03a80870a4
|
|
@ -1,7 +1,9 @@
|
|||
<template>
|
||||
<div class="box">
|
||||
<div class="box-title">视频通话</div>
|
||||
|
||||
<div class="box-container">
|
||||
<iframe src="/trtc.html" style="width:550px;height:420px;padding:0px;margin:0px;" allow="microphone;camera" frameborder="0"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -16,6 +18,17 @@ import axios from "axios";
|
|||
},
|
||||
created(){
|
||||
|
||||
},
|
||||
mounted(){
|
||||
window.addEventListener("message",function(event){
|
||||
if(event.data == "start"){
|
||||
alert("start");
|
||||
}else if(event.data == "end"){
|
||||
alert("end");
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
methods:{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue