Answer the question
In order to leave comments, you need to log in
How to connect to the server via WebRTC in swift?
I rummaged through a bunch of information on WebRTC on ios, either I’m just not experienced, or there’s nothing, the whole point is that I scan the qr-code, decode the data and get hostname, port, roomid, peerid, displayname, after that I need to connect to the broadcast and demonstrate the screen of the phone, please tell me how to connect?
Answer the question
In order to leave comments, you need to log in
If there is nothing worthwhile ready, then I advise you to take the code from this project - https://github.com/sergiopaniego/WebRTCiOS . A year ago, I did just that.) It is quite easy to understand - it is to understand the sequence, what is initialized for what. Of course, I advise you to rewrite the code itself according to solid rules, at the same time you will figure out what goes where. And most importantly - keep track of the life cycles of objects.
ps. My project code did not start, but after rewriting - ok.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question