It’s a video chat script I make for my server, it can’t be used plug and play, you need to integrate it into your phone to use it. The first visual is an image from the phone I use on my server 2. the visual is the user interface that is included in the script for the demo.
You can apply HTML and js to any phone you can access , I can’t publish an example because I’m busy right now, so I’m going to share an example when I’m done
Can you please give instructions on how to set it up for gcphone? It would be a great help if you do. Most of the people are newbies when it comes to developing. As of now this is only useful for those who have extreme knowledge in this field.
if the offer is not available, it means to exit the code block without responding via webrtc. if user == nil then return end sendData({ type = "answer", answer = data.answer }, user.serverId) or if user ~= nil then sendData({ type = "answer", answer = data.answer }, user.serverId) end They both work the same way.
why check for nil?
There are two options, if it’s an array (then #array works crookedly in Lua, and make a function like tableSize(array) – return length array) if it’s something else, then just
if not user then return end – NOT ARRAY
if tableSize(user) <= 0 then return end