Troubleshooting video chat component
This commit is contained in:
parent
870f288936
commit
292a0db78d
File diff suppressed because one or more lines are too long
@ -20,7 +20,9 @@ class VideoCall extends React.Component{
|
||||
}
|
||||
join(data){ this.createPC(data.from, true) }
|
||||
joinCall(e){
|
||||
VideoCall.cable.subscriptions.create(
|
||||
console.log("Hello from joinCall");
|
||||
console.log(e);
|
||||
App.cable.subscriptions.create(
|
||||
{ channel: "CallChannel" },
|
||||
{
|
||||
connected: () => {
|
||||
@ -128,7 +130,7 @@ class VideoCall extends React.Component{
|
||||
.forEach(function (track) { track.stop(); })
|
||||
|
||||
this.localVideo.srcObject = null;
|
||||
VideoCall.cable.subscriptions.subscriptions = [];
|
||||
App.cable.subscriptions.subscriptions = [];
|
||||
this.remoteVideoContainer.innerHTML = "";
|
||||
broadcastData({ type: LEAVE_CALL, from: this.userId });
|
||||
}
|
||||
@ -148,4 +150,4 @@ class VideoCall extends React.Component{
|
||||
</div>)
|
||||
}
|
||||
}
|
||||
export default VideoCall;
|
||||
export default App;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user