Giter VIP home page Giter VIP logo

Comments (3)

stasel avatar stasel commented on September 17, 2024 2

Hi @SimonTheCat Thanks for the PR and the suggestion! Sorry for the late response, I have been a bit busy lately. I am working on some improvements to the project and I will definitely consider adding a data channel example.

from webrtc-ios.

saroar avatar saroar commented on September 17, 2024

@SimonTheCat do you know how to code for 1:Many I really trying but for a 2nd person it does not work I try something like this

private var peerConnections: [String: RTCPeerConnection] = [String: RTCPeerConnection]()
    private func _createOffer(hostID: String) {

        guard let peerConnection = getPeerConnection(hostID) else {
            print("missing peer connection")
            return
        }
        
        // 1. offer
        peerConnection.offer(for: WebRTCUtil.mediaStreamConstraints(), completionHandler: { [weak self] (description, error) in
            
            guard let description = description else {
                print("----- no description ----")
                return
            }

            // 2.SDP
            peerConnection.setLocalDescription(description, completionHandler: { (error) in
                guard let this = self else {
                    print("missin self")
                    return }
         
            })
            
            // 3. peerConnection(_ peerConnection: RTCPeerConnection, didChange newState: RTCIceGatheringState)
            // complete offer
        })
    }

after create offer it not connect with peer to send server String with sdp

from webrtc-ios.

stasel avatar stasel commented on September 17, 2024

Thanks again for your suggestion. I have added a data channel example to the project (see b441a34).

from webrtc-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.