opentok / accelerator-core-android Goto Github PK
View Code? Open in Web Editor NEWAn easy way to integrate OpenTok SDK to any Android applications
Home Page: https://tokbox.com
License: Apache License 2.0
An easy way to integrate OpenTok SDK to any Android applications
Home Page: https://tokbox.com
License: Apache License 2.0
README
Compile project
Failed to resolve project
add opentok lib to project as suggested and try to compile
...
...
README
Minimum 3 attendee can chat together
When 2 subscribers entering same session, publisher closes session
Open a session from publisher and attend with min 2 subscribers at the same time
... No crash log, just Session.SessionListener calls onDisconnected(SELF, 0,
mSessionConnection.getConnectionId(),
mSessionConnection.getData());
...
README
OTWrapper constructor must create an instance.
In constructor, it goes to initAnalytics function and in this function;
String source = mContext.getPackageName();
while running this line program crashes because mContext is null.
Just create an instance of OTWrapper class.
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at com.tokbox.android.otsdkwrapper.wrapper.OTWrapper.initAnalytics(OTWrapper.java:1034)
at com.tokbox.android.otsdkwrapper.wrapper.OTWrapper.(OTWrapper.java:117)
README
The app should run with proguard rules
App getting crash when the Proguard is enable with following code
-keep class com.opentok.** { ; }
-dontwarn com.opentok.*
-dontwarn org.codehaus.jackson.map.ext.**
GRADLE file
implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
implementation 'com.opentok.android:opentok-accelerator-core:1.0.21'
implementation 'com.opentok.android:opentok-accelerator-annotation:1.0.1'
Enable ProGuard and run the app
java.lang.NoSuchFieldError: No static field PUBLIC_ONLY of type Lorg/codehaus/jackson/a/d$a; in class Lorg/codehaus/jackson/a/d$a; or its superclasses (declaration of 'org.codehaus.jackson.a.d$a' appears in /data/app/com.example.app-0UQOjKsC23lUqgHZvfvZsA==/base.apk!classes2.dex)
at java.lang.Class.getDeclaredAnnotation(Native Method)
at java.lang.Class.getAnnotation(Class.java:2481)
at org.codehaus.jackson.map.d.s$a.(VisibilityChecker.java:178)
at org.codehaus.jackson.map.d.s$a.a(VisibilityChecker.java:186)
at org.codehaus.jackson.map.w.(ObjectMapper.java:196)
at com.tokbox.android.a.a.(OTKAnalytics.java:28)
at com.tokbox.android.otsdkwrapper.d.b.p(OTWrapper.java:1040)
at com.tokbox.android.otsdkwrapper.d.b.(OTWrapper.java:123)
...
The app should not get kill from any type of issue that's happening from the server.
Crash of app when not sending the data in TYPE field of open tok playground
Step 1 . Connect a session from android app using accelerator-core-android library
Step 2 . On TokBox playground server connect the session .
Step 3 . Send The Single message from the dashboard without adding any data in TYPE field
Step 4 . Check the app that was running ,the app has been crashed .
Crash log
2019-01-29 11:01:21.045 23001-23001/com.example.app E/UncaughtException: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
at java.util.Hashtable.get(Hashtable.java:365)
at com.tokbox.android.otsdkwrapper.wrapper.OTAcceleratorSession.dispatchSignal(OTAcceleratorSession.java:223)
at com.tokbox.android.otsdkwrapper.wrapper.OTAcceleratorSession.access$200(OTAcceleratorSession.java:25)
at com.tokbox.android.otsdkwrapper.wrapper.OTAcceleratorSession$4.onSignalReceived(OTAcceleratorSession.java:264)
at com.opentok.android.Session.onSignalReceived(Session.java:1790)
at com.opentok.android.Session$11.run(Session.java:1771)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Hi Team,
I am using Opentok in Android for video calling & chat. My app was working fine before 7 days. But from last 7 days we are not able to connect session in Android. we are continuously getting Publisher not found or Camerafailed exception.
Android studio version : 4.0.1
Please tell any solution ASAP
Thanks
README
...
...
...
...
...
README
...
...
...
...
...
README
Please update ext.sdkVersion to more recent one (2.15 or 2.16). Because otherwise we will not be able to publish a release on play store due to new 64bit requirement.
README
When I compile my project I'm getting this error:
Error:(28, 20) Failed to resolve: com.opentok.android:opentok-accelerator-core:1.0.+
I get this error with logging library too
... To be compiled
... Giving error
... Just try the sync gradle file
...
...
README
After a while from video chat started between 2 devices (One tablet, One real device) application crashes.
Continious video chat
App crashes after a while (Happened after ~10 secs, ~1 mins, ~3 mins)
Starting video chat and waiting
Logcat logs:
05-29 12:13:20.172 20068-4235/com.xxxx E/rtc: #
# Fatal error in /home/tokbox/jenkins/workspace/task-release-otkit-android/project/android/opentok-android-sdk-webrtc/src/main/jni/wrapper/decoder_factory.cc, line 855
# last system error: 2
# Check failed: 0 == stride (0 vs. 1)
#
#
05-29 12:13:20.173 20068-4235/com.xxxx A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 4235 (MediaCodecVideo)
[ 05-29 12:13:20.175 2338: 2338 W/ ]
debuggerd: handling request: pid=20068 uid=10149 gid=10149 tid=4235
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.