视频通话
parent
0535b2c7ae
commit
03a80870a4
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="box-title">视频通话</div>
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -16,6 +18,17 @@ import axios from "axios";
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
window.addEventListener("message",function(event){
|
||||||
|
if(event.data == "start"){
|
||||||
|
alert("start");
|
||||||
|
}else if(event.data == "end"){
|
||||||
|
alert("end");
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue