Mobile game p2p port-forwarding - c

I am trying to create a mobile P2P game with network library written in c (enet/libuv).
I have read in some forum that there is risk of blocked port by the router and I need to do something called port-forwarding.
Most of the topic related are for console games and I'm trying to do mobile game, which theoretically should be the same.
Sorry for my noob question but, will it be a big issue for my game and how can I fix this problem (without using any third-party help) ?
Many thanks for the help.

Related

Bluetooth application with react native

Hi i want to write an application in react-native that people in same place can join each other and play a game on bluetooth connection.
The first question is if it is possible with react native?
And second is which documentation can help me ?
Thanks
I dont see why not, i have used Ionic wich uses Cordova (non native) to create bluetooth connections without problem, bluetooth is a basic feature of phones.
Take a look at this library it may help you or give you a good point of start: https://github.com/Polidea/react-native-ble-plx

Screen sharing and screen control on android and iOS using WebRTC

I've to share a mobile screen and display it on a browser using WebRTC. I then have to take control of the mobile screen.
I've researched this and know I can share a screen browser to browser using chrome(with extension) or firefox(after certain flags are set). Some information I've read suggests that screen sharing on mobile is not possible and then another article said it was but I think they meant be sharing through the chrome browser on a mobile.
Some of the the information and posts I read are dating back to 2013/2015/2016 and I wondered if there is any new information on this?
Is screen sharing on mobile devices(android or iOS) possible using webrtc now?
is screen control on mobile devices possible?
Thanks Andrea
I also investigated this topic a few days ago and it seems to me we are on the verge of the next step and the technology hasn't totally settled yet. Screencapture is mostly working with (very) up-to-date browsers and (still) an extension or some kind of white-listing. I could not find any kind of hint that a "remote control" mechanisms are part of webrtc and the getUserMedia implementations. Unfortunately.
ICE seems to work fine for most scenarios (if you don't mind waiting a minute) and Tickled ICE adresses the problem in an interesting way.
Mobile is very confusing indeed as the market is even more heterogeneous.
Maybe we should open a wiki or a chat channel or whatnot they habe nowadays on stackoverflow :-) I think I will have to read about this "community wiki" checkbox down there...
The most promising thing I could find was
https://inthelocus.com/
Still trying it out in different scenarios.
[This might not be an answer...] I was on the same topic and then I noticed there's an existing tool (SDK) to serve the similar purpose: https://cobrowse.io. It works good in both the demo video and the simulator web page. Yet I'm not sure if it utilises WebRTC...

Print to Wifi Printer from CN1 app

Is it possible to print from my CN1 app to a WiFi printer?
I don't want to print files. I want to print tables filled with data from my users.
I noticed this question from 3 years ago. https://groups.google.com/forum/#!topic/codenameone-discussions/RIizxJNZBHU. Hopefully there is something now. Thanks
There is nothing new about this as it's a pretty niche requirement. When it was asked printing support was remarkably rare and now its just rare.
You can use a webservice like Google Cloud Print or use native interfaces to integrate with the printing API's e.g. see the developer guide sections about building cn1libs and working with native code: https://www.codenameone.com/manual/advanced-topics.html

How to Implement Fingerprint Lock Screen in Codenameone

Does anyone have an idea to implementing lock screen that uses fingerprint to unlock the screen on a codenameone app. Any ideas at all will be welcomed. Majority of ideas i have seen are basically cheat concepts that does not implement the concept. You ideas, resources, links etc are welcomed even if it requires a 3rd party service butt I think java native code may be able to do this, i just dont have a clear idea yet.
Global lock screen can't be implemented in Codename One since its very specific to Android and has no portable alternative. You might as well just write a native app.
You will need to write a native interface to access the fingerprint reader hardware:
https://www.codenameone.com/how-do-i---access-native-device-functionality-invoke-native-interfaces.html
https://www.codenameone.com/blog/integrating-3rd-party-native-sdks-part-1.html
Using the native touch ID should be pretty strait forward e.g.: http://www.devfright.com/touch-id-tutorial-objective-c/

Use Adobe Flash/AIR VOIP in Winforms

Since there are no answers yet, I'm going to rewrite this question in hopes of an answer (I don't mind discussion, but I know SO is about Q&A). It appears security checks/prompts make it unfeasible to use Flash Player. With this in mind, the question still stands, but please answer based on experience using AIR.
I have a Winforms app written in C# that I need to add VOIP to. I really like how well the Flash Player VOIP solution works, the AEC (echo cancel) is awesome. I know they use Speex, but the implementation is still a lot of work even using Speex, so I'd like to use Adobe's solution directly in my app.
Has anyone done this? What issues will I have? A few I can think of:
IPC between AIR and Winforms app. I assume this is easy and several options, including sockets/network, file i/o, maybe others.
Based on this
Content running in the AIR application sandbox does not need the
permission of the user to access the microphone
I don't think security warnings will be an issue? I'm not sure what a sandbox is yet, but as long as my AIR app can run in this and still talk with my winforms app, then shouldn't be an issue.
I assume the voice capture including enhancements (AEC, NS, Speex, etc) are supported in AIR?
Are there any samples I can run that use voice capture in AIR?

Resources