mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Fix connection issues
This commit is contained in:
parent
3fe8b2f438
commit
24218cf1e1
@ -694,6 +694,10 @@ class CallWindow extends CustomEvents {
|
|||||||
*/
|
*/
|
||||||
async startStreaming(includeVideo, shareScreen = false) {
|
async startStreaming(includeVideo, shareScreen = false) {
|
||||||
|
|
||||||
|
// Close any previous connection
|
||||||
|
this.closeMainPeer();
|
||||||
|
this.refreshButtonsState()
|
||||||
|
|
||||||
let stream;
|
let stream;
|
||||||
|
|
||||||
// Get user screen
|
// Get user screen
|
||||||
@ -731,6 +735,7 @@ class CallWindow extends CustomEvents {
|
|||||||
|
|
||||||
// Show user video
|
// Show user video
|
||||||
await this.applyStream(userID(), true, stream)
|
await this.applyStream(userID(), true, stream)
|
||||||
|
this.refreshButtonsState()
|
||||||
|
|
||||||
this.mainPeer = new SimplePeer({
|
this.mainPeer = new SimplePeer({
|
||||||
initiator: true,
|
initiator: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user