Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

How to add iceServer config? #548

Open
Myshny opened this issue May 21, 2022 · 3 comments
Open

How to add iceServer config? #548

Myshny opened this issue May 21, 2022 · 3 comments

Comments

@Myshny
Copy link

Myshny commented May 21, 2022

Hello

It missed in sample conference - how to add iceServer config to Owt.Conference.ConferenceClient?

I try this but it is not working:

const rtcConfiguration = {
      iceServers: [{
    urls: '"stun:stun.l.google.com:19302"',
  }, {
    credential: 'password',
    username: 'username',
  }],
};

    const signaling = new Owt.Conference.SioSignaling();
    var configuration =  Owt.Conference.ConferenceClientConfiguration = rtcConfiguration;
    conference = new Owt.Conference.ConferenceClient({
      audioEncodings: true,
      videoEncodings: [{
          codec: {
            name: "h264"
          }
      },
        {
          codec: {
            name: "vp9"
          }
      },
        {
          codec: {
            name: "vp8"
          }
      }],
     configuration,
},signaling);

@Myshny
Copy link
Author

Myshny commented Jun 14, 2022

Could somebody help? I stuck with it.

Error: Ice procedure failed.
Unhandled Promise Rejection: Error: Ice procedure failed.

@jianjunz
Copy link
Collaborator

Please create a ConferenceClient with your own configuration.

@Myshny
Copy link
Author

Myshny commented Jun 15, 2022

jianjunz - Thank you for reply!

What do you mean? In my code above I assume that I created new OWT configuration?

var configuration =  Owt.Conference.ConferenceClientConfiguration = rtcConfiguration;
    conference = new Owt.Conference.ConferenceClient({
      audioEncodings: true,
      videoEncodings: [{
          codec: {
            name: "h264"
          }
      },
        {
          codec: {
            name: "vp9"
          }
      },
        {
          codec: {
            name: "vp8"
          }
      }],
     configuration,
},signaling);

This block of code?

Maybe you can share some examples?
In fact im I don't know how to do this..
In IOS/Android all works fine, I add STUN servers and all is ok but in web js it's not clear for me(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants