Update component name from App to VideoCall
This commit is contained in:
parent
7571a78afc
commit
870f288936
File diff suppressed because one or more lines are too long
@ -20,7 +20,7 @@ class VideoCall extends React.Component{
|
|||||||
}
|
}
|
||||||
join(data){ this.createPC(data.from, true) }
|
join(data){ this.createPC(data.from, true) }
|
||||||
joinCall(e){
|
joinCall(e){
|
||||||
App.cable.subscriptions.create(
|
VideoCall.cable.subscriptions.create(
|
||||||
{ channel: "CallChannel" },
|
{ channel: "CallChannel" },
|
||||||
{
|
{
|
||||||
connected: () => {
|
connected: () => {
|
||||||
@ -128,7 +128,7 @@ class VideoCall extends React.Component{
|
|||||||
.forEach(function (track) { track.stop(); })
|
.forEach(function (track) { track.stop(); })
|
||||||
|
|
||||||
this.localVideo.srcObject = null;
|
this.localVideo.srcObject = null;
|
||||||
App.cable.subscriptions.subscriptions = [];
|
VideoCall.cable.subscriptions.subscriptions = [];
|
||||||
this.remoteVideoContainer.innerHTML = "";
|
this.remoteVideoContainer.innerHTML = "";
|
||||||
broadcastData({ type: LEAVE_CALL, from: this.userId });
|
broadcastData({ type: LEAVE_CALL, from: this.userId });
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user