视频通话

master
徐景良 2023-08-14 14:38:09 +08:00
parent 0535b2c7ae
commit 03a80870a4
1 changed files with 14 additions and 1 deletions

View File

@ -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:{