Comments (5)
Currently we do not have official Java bindings for Android. The code at the java
folder is deprecated and we do not currently use it. In order for it to work on android, you have to either use it within a C++ program and cross-compile it to android, or you have to create a Java binding for it and use the binding to run in android.
We currently use Unity to run on Android and iOS, and therefore this is our main binding that runs on both platforms. If you are not using Unity but native Java (or Kotlin), you have to create a binding for it. Here you can find more information on how to do that: https://developer.android.com/studio/projects/add-native-code.html
We want however to eventually have Java bindings, but at the moment we are not working on it.
from libpitaya.
If you want to run c++or c on android, you can use the following function to listen for server pushes:
void pc_client_set_push_handler(pc_client_t *client, pc_push_handler_cb_t cb);
from libpitaya.
I've compiled the android-related interface files using javacpp.
https://github.com/bytedeco/javacpp
from libpitaya.
For the dynamic library generation on the android platform, I fork a code and then made changes.
https://github.com/taledog/libpitaya
from libpitaya.
hi @arden, good job on using javacpp to generate the JNI code for android, we will adopt your idea (thanks for that) and integrate it in our repo with the correct paths soon.
I think I can close this issue now, best!
from libpitaya.
Related Issues (20)
- The ios examples you provided, some errors. HOT 1
- How does the ios client listen for messages broadcast from the server? HOT 1
- CMake was unable to find a build program corresponding to "Ninja". HOT 8
- How to generate libpitaya.so files on each Android CPU platform? HOT 2
- How can I compile a windows-based DLL dynamic link library on macos? HOT 2
- Is there any way to slim down this library? When I used pod install in ios, the library was so large that the download was slow. HOT 4
- Event manager disposing on other threads
- Connector logs "Error reading next available message: invalid header" on player disconnection HOT 1
- How to set client congif from C# ?
- NSubstitute
- libpitaya lua
- __PitayaGetCFBundleVersion symbol not found in new version
- pc__trans_push issue HOT 1
- On iOS, the library arm64_armv7 no libssl.a file HOT 1
- Native libraries are not properly moved on iOS builds
- How do I start a server
- Can it be OK to call Connect() function directly, after disconnected without any reset work? HOT 2
- DllNotFoundException on linux
- An error occurred when I packaged an iOS project From Unity2019
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpitaya.