Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with WebRTC Session Description #498

Open
ClarLabs opened this issue Sep 24, 2023 · 0 comments
Open

Issues with WebRTC Session Description #498

ClarLabs opened this issue Sep 24, 2023 · 0 comments

Comments

@ClarLabs
Copy link

Hello WebRTC-RS

I am learning rust by building a webRTC application and at the same time learning webRTC, to say the learning curve has been steep is an understatement 馃槃

I have a slight issue with the rust application currently using the examples as a base, the session descriptiong being sent both from within a Docker environment and on a Digital Ocean droplet contains the IP address 0.0.0.0, I think this is the reason I am unable to start a webRTC session from my desktop to these environments, of course, running everything locally works beautifully (given a few tweaks and improvements, but it works 馃槃 )

The bit I am looking at is the following:

'''
peer_connection.set_remote_description(offer).await?;

            let answer = peer_connection.create_answer(None).await?;

            peer_connection.set_local_description(answer).await?;

            if let Some(local_desc) = peer_connection.local_description().await {
                let json_str = serde_json::to_string(&local_desc)?;
                let b64 = encode(&json_str);
                let _out = socket.send(Message::Text(format!(
                    r#"{{"type": "host", "session": "{}"}}"#,
                    b64
                )));
            } else {
                println!("generate local_description failed!");
            }

'''

I am not sure what else I can do to debug this as kinda hit a brick wall, I am so close to getting to the next stage of this project, but need it working within Docker to continue 馃槃

Any help would be appreciated

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

No branches or pull requests

1 participant