Closed jarquafelmu closed 3 years ago
@jarquafelmu
I've just finished the same course, so I thought I'd see if could reproduce this but unfortunately it seems to work for me.
It looks like in your doAttendeeLeft()
method, you're missing the final .doc(this.user.uid)
and so the ref is actually to the collection and not the document. Adding that should resolve it 🤞
Ahh, I think I see the confusion, left-room is only called when other people leave the room. Since you are calling .leave() on a button click, you can clean yourself up there in the click event. I haven't seen the course code, so don't know about that.
I have the same issue. "left-room" never gets send. However it seems to work correct in Chrome but not in Firefox. In Crome the event is beeing sent even when I leave the room. Probably the main issue comes from the used RTCMultiConnection lib.
Describe the bug Attaching a method to
<vue-webrtc v-on="myMethod"
, "myMethod" method never gets called.v-on:joined-room
works correctly.I was doing
your(incorrectly assumed you were the author of the linkedin video "Building a Video Chat App with Vue.js and Firebase" so I apologize for that, but i am still having the issue) linkedin/learning tutorial on making a video-chat app with vue and firebase, and I've been trying to figure out why my leave button click doesn't complete all the way. The video exits but the webRTCID never gets cleared. I believe that I have narrowed it down to theleft-room
event just not happening.The
joined-room
event works correctly and is fired, for example after callingthis.$refs.webrtc.join()
. But after callingthis.$refs.webrtc.leave()
the video goes away but there's never aleft-room
event raised.Additionally, when adding
:enableLogs="true"
tovue-webrtc
, logs show for joining a room, but nothing shows when trying to leave a roomTo Reproduce Steps to reproduce the behavior:
App.vue
add@left-room="logEvent"
tovue-webrtc
dom element.@click="leaveRoom"
alternatively,
webRTCID
for the user was not clearedExpected behavior I expected that
left-room
to be raised so that I could use it clean up the user on the client's sideScreenshots on joining, both the
joining webrtc
andgot join event
can both be seen in the console. however, on leaving only theleaving webrtc
can be seenDesktop (please complete the following information):
Additional context Add any other context about the problem here.