Update component name from App to VideoCall
This commit is contained in:
parent
c568d35d47
commit
108d5882a5
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) }
|
||||
joinCall(e){
|
||||
App.cable.subscriptions.create(
|
||||
VideoCall.cable.subscriptions.create(
|
||||
{ channel: "CallChannel" },
|
||||
{
|
||||
connected: () => {
|
||||
@ -128,7 +128,7 @@ class VideoCall extends React.Component{
|
||||
.forEach(function (track) { track.stop(); })
|
||||
|
||||
this.localVideo.srcObject = null;
|
||||
App.cable.subscriptions.subscriptions = [];
|
||||
VideoCall.cable.subscriptions.subscriptions = [];
|
||||
this.remoteVideoContainer.innerHTML = "";
|
||||
broadcastData({ type: LEAVE_CALL, from: this.userId });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user