Connecting to libswift-p2p with WebRTC - webrtc

I'm trying to port a video player Android App to a Web App. The app uses a library called "libSwiftP2P.so".
From looking at the code of the app, all I managed to figure out is that it connects to a STUN server and uses libSwift for Peer-To-Peer connections.
There isn't much information about libSwift online. The only somewhat useful results I found was this GitHub repository, and the libswift.org website, neither of which have been updated in the last 5 years.
I understand that there is a high chance that what I am trying to do is near to impossible. Although both technologies utilize P2P, WebRTC and libSwift might be completely incompatible with one another.
Another option I considered was compiling libSwift's C++ code into WebAssembly, and using that to connect.
However, I haven't ever done anything with WASM and it is probably a way more complicated process than I am putting it.
I would be very grateful if someone could shed some light on this, or if you just tell me that it's not possible, and to give up. Thank you.

Related

How to send/receive messages to/from Skype from a 3rd party application

I've been researching for quite good amount of time about how to interact with Skype, meaning how to send and receive Skype messages from another application that I'm planning to develop.
I found a lot of things which made me confused. There is Skype API mentioned and used by some libraries (like SkPy), and there is Skype Web SDK, SkypeKit, and others.
When looking on the official Skype dev website (https://dev.skype.com) nothing about these is mentioned, and looks like the Microsoft Bot Framework is where MS is moving everything to (or at least that is what I got).
My question is, what is the current situation now regarding this topic? Is it still safe to build a solution on such libraries as SkPy (which uses Skype HTTP API that I could not find a trace of in the Skype's official docs!, but still, I tested and it's working!). Or I should just think of MS Bots? And is Bot a suitable solution for such use case in the first place? (I feel it's not meant to do so).
Hopefully will get some hints.

What are the pros and cons of implementing webRTC?

I would like to implement a video / audio call feature from a browser. The goal is to allow two users to communicate remotely without having to install a third part (when I say third part, I'm talking about a software or an extension on a browser).
I know WebRTC, which is very popular today and free. However, it is very difficult to implement and the documentation is difficult to understand (not very easy for a beginner).
Here is the official webRTC documentation, and honestly, where to start? https://webrtc.org/start/
If you have an experience about WebRTC, is it possible to share with positive or negative points? This would be very useful for the community.
Moreover, if you have experience with another library, I think it would be interesting to hear it.
There is no other way to develop a call service in a website without the use of WebRTC today.
The alternatives are:
Use WebRTC
Use Flash (which is... dead)
Use a plugin (which is... dying as a mechanism in browsers)
Use an app you download (not exactly a service in a website)
Node.js is the way to go, but you will need to learn some new technology, especially when it comes to the backend.
The servers you will need are:
1. The traditional web application server
2. A signaling server (the one you plan on using Node.js for - you can use that for the web application server as well)
3. A STUN/TURN server (for NAT traversal)
4. Maybe a media server, depending on your use case
For some alternative open source and commercial products, you can check this WebRTC Developer Tools Landscape

XSockets on Linux for WebRTC Voice Conferencing Setup?

I am very new to WebRTC and XSockets.
I have been struggling to work out how to start coding a WebRTC app running through XSockets. Ideally my production server would be running Ubuntu or similar but all I see is talk about Visual Studio, MVC etc. But I have also read it works perfectly with Mono on any platform.
Would someone be able to explain to me (in the simplest terms possible) the steps I need to take to make a XSockets/WebRTC page run?
Thanks!

Load-testing xmpp server

I am looking for a tool capable of generating multiple Xmpp connections to load-test a XMPP server with a secure connection, especially starttls.
For a xmpp plain text authentication I had used jab_simul(followed this tutorial) and tsung both with success.
But I was unable to use the tolls above for the starttls,I peeked into the code of both tools and tried different configurations of the tools.
Another option I am pondering is using a xmpp library like eXmpp and make a specific load-testing tool myself with, instead of altering jab_simul (C software with comments in language i do not understand) or altering tsung(all purpose load-testing tool, so lots of place where you can go wrong).
short-story - I am looking for a tool or advice to stress-testing/load-testing a xmpp server.
We are facing exactly the same challenge right now. After deep consideration we found out that only especially build software can deliver the load we want to test. (Remember, you can configure ejabberd to something very specific :-)
For that we developed a small library called xmpp_talker https://github.com/burinov/xmpp_talker (Apache Licence) which is a kind of xmpp client made as a gen_server. I find it is a very nice starting point to build any kind of load simulation software. There is also echo_worker example included. So, you have good base to start. At the moment xmpp_talker is suited for exmpp 0.9.7. As far as I know in a few days will be out version 1.0.0. (or 0.9.9?) There are many bug fixes (trust me you don't want to know about them). On monday I will release xmpp_talker for exmpp 0.9.8 with proper service interruption handling.
In case you deside to go the same way xmpp_talker could be useful for you.
Added: Here is also great article that is realted to the topic: https://support.process-one.net/doc/display/EXMPP/Scalable+XMPP+bots+with+erlang+and+exmpp
There's also the recently started XMPP benchmarking project called xmppench which aims to be a high-performance benchmarking tool simulating some reasonable use cases of XMPP servers. It's written in C++, based on Swiften and boost.

Connecting to server using bonjour in Objective-C

I am relatively new to iphone development. I have looked through the documentation and cannot really find an answer to this problem.
I have a server which I have created and know the ip address and the port it is using. I am now trying to connect to this using an iphone application I am creating. Through the documentation there are many example where it connects via an ID (such as the witap example) however there is none where it directly accesses a previously created server.
Would anyone be able to point me in the direction of an example that uses this, give me some information or even inform me of another way around doing this? It would be much appreciated. Thanks.
Bonjour is a technology to detect servers in your local network. If you already know it, as you seem to because you know the IP address, you can connect to it using the usual techniques.
It depends on your server, is it a HTTP server? There are some Cocoa classes that might help you.
If it's a custom made server you might consider CFStream or raw sockets.