|
@ -154,6 +154,21 @@ export default {
|
|
|
'createChat':{
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
'iceservers' :{
|
|
|
type: Object,
|
|
|
default:{
|
|
|
"iceServers":[
|
|
|
{
|
|
|
urls:"stun:47.110.140.238:3478"
|
|
|
},
|
|
|
{
|
|
|
urls:["turn:47.110.140.238:3478"],
|
|
|
username:"kurento",
|
|
|
credential: "kurento"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
data(){
|
|
@ -400,11 +415,12 @@ export default {
|
|
|
var participant1 = new this.participant(this.userId, this);
|
|
|
this.participants[this.userId] = participant1;
|
|
|
var video = participant1.getVideoElement();
|
|
|
|
|
|
var iceServer = this.iceservers;
|
|
|
var options = {
|
|
|
localVideo: video,
|
|
|
mediaConstraints: constraints,
|
|
|
onicecandidate: participant1.onIceCandidate.bind(participant1)
|
|
|
onicecandidate: participant1.onIceCandidate.bind(participant1),
|
|
|
configuration: iceServer
|
|
|
};
|
|
|
|
|
|
participant1.rtcPeer = new window.kurentoUtils.WebRtcPeer.WebRtcPeerSendonly(options,
|
|
@ -425,10 +441,11 @@ export default {
|
|
|
var participant1 = new this.participant(sender, this);
|
|
|
this.participants[sender] = participant1;
|
|
|
var video = participant1.getVideoElement();
|
|
|
|
|
|
var iceServer = this.iceservers;
|
|
|
var options = {
|
|
|
remoteVideo: video,
|
|
|
onicecandidate: participant1.onIceCandidate.bind(participant1)
|
|
|
onicecandidate: participant1.onIceCandidate.bind(participant1),
|
|
|
configuration: iceServer
|
|
|
}
|
|
|
|
|
|
participant1.rtcPeer = new window.kurentoUtils.WebRtcPeer.WebRtcPeerRecvonly(options,
|