Skip to content

iceGatheringStateChange is never triggered. #400

@0wwafa

Description

@0wwafa
pc1.addEventListener('iceGatheringStateChange', () => {
    if (pc1.iceGatheringState === 'complete') {
        console.log('ICE gathering complete for pc1');
        console.log('SDP:', pc1.localDescription.sdp);
    }
});

pc1.onicegatheringstatechange = () => {
	console.log('changed',pc1.localDescription.sdp);
    if (pc1.iceGatheringState === 'complete') {
        console.log('ICE gathering complete for pc1');
        console.log('SDP:', pc1.localDescription.sdp);
    }
};

both these functions are never triggered.
Also, at the end of the ice gathering (and during) sdp should contain all the ice candidates gathered.

This works in a browser.
Does not work with werift.

The purpose:
I want to instantiate a datachannel.
At the end of the ice gathering I want to create the offer with all the candidates inside the sdp.
From a web browser I can do that.
So after that I send the full offer, I get the full answer and the connection starts.

So in the end is only:

pc1 (create full offer) >> send offer to pc2.
pc2 (create full answer) >> send answer to pc1
pc1: connect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions