Comments (8)
Hi @praveshkhatana,
Mind explaining the error or the steps you've done to produce this issue so I can replicate it?
from nativescript-twilio-video.
from nativescript-twilio-video.
Maybe sometime in the future.
Gonna close this.
from nativescript-twilio-video.
@praveshkhatana Were you able to use this plugin with nativescript angular?
@armackey I am using angular and getting the error below when I try to connect to room with my twilio room id. Do you have any suggestions? I would like to make an angular-demo app if this is solved. Thanks in advance.
JS: ERROR Error: Uncaught (in promise): TypeError: (intermediate value).build is not a function JS: TypeError: (intermediate value).build is not a function JS: at VideoActivity.requestAudioFocus (file:///data/data/com.teleclinic.medacardoctorapp/files/app/tns_modules/nativescript-twilio-video/src/android/twilio-video.js:339:16) JS: at VideoActivity.configure_audio (file:///data/data/com.teleclinic.medacardoctorapp/files/app/tns_modules/nativescript-twilio-video/src/android/twilio-video.js:315:18) JS: at VideoActivity.connect_to_room (file:///data/data/com.teleclinic.medacardoctorapp/files/app/tns_modules/nativescript-twilio-video/src/android/twilio-video.js:43:18)
And I got the error below if I disable the audio option in connect_to_room.
S: ERROR Error: Uncaught (in promise): Error: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.twilio.video.LocalVideoTrack.isReleased()' on a null object reference JS: com.twilio.video.ConnectOptions.checkVideoTracksReleased(ConnectOptions.java:57) JS: com.twilio.video.ConnectOptions$Builder.build(ConnectOptions.java:361) JS: com.tns.Runtime.callJSMethodNative(Native Method) JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088) JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:970) JS: com.tns.Runtime.callJSMethod(Runtime.java:957) JS: com.tns.Runtime.callJSMethod(Runtime.java:941) JS: com.tns.Runtime.callJSMethod(Runtime.java:933) JS: com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12) JS: org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:585) JS: org.nativescript.widgets.Async$Http$1$1.run(Async.java:486) JS: android.os.Handler.handleCallback(Handler.java:789) JS: android.os.Handler.dispatchMessage(Handler.java:98) JS: android.os.Looper.loop(Looper.java:251) JS: android.app.ActivityThread.main(ActivityThread.java:6589) JS: java.lang.reflect.Method.invoke(Native Method) JS: com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
from nativescript-twilio-video.
Hey
I don't use angular with NS so I can't give much directions on that. I just updated the plugin removing most of the requestAudioFocus that I believe is causing the error. Please download the latest version and let me know if you're still seeing an issue with Android.
from nativescript-twilio-video.
Also, if you'd like to make a pull request with Angular, that's totally fine!
from nativescript-twilio-video.
@armackey thanks for the quick reply!
Your update solved my audio focus issue but I'm still getting the error below related to video. I can connect the room successfully if I disable video. I'll look into it but I'll appreciate your help :)
ERROR Error: Uncaught (in promise): Error: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.twilio.video.LocalVideoTrack.isReleased()' on a null object reference JS: com.twilio.video.ConnectOptions.checkVideoTracksReleased(ConnectOptions.java:92) JS: com.twilio.video.ConnectOptions$Builder.build(ConnectOptions.java:396) JS: com.tns.Runtime.callJSMethodNative(Native Method) JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088) JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:970) JS: com.tns.Runtime.callJSMethod(Runtime.java:957) JS: com.tns.Runtime.callJSMethod(Runtime.java:941) JS: com.tns.Runtime.callJSMethod(Runtime.java:933) JS: com.tns.gen.org.nativescript.widgets.Async_CompleteCallback.onComplete(Async_CompleteCallback.java:12) JS: org.nativescript.widgets.Async$Http$HttpRequestTask.onPostExecute(Async.java:585) JS: org.nativescript.widgets.Async$Http$1$1.run(Async.java:486) JS: android.os.Handler.handleCallback(Handler.java:751) JS: android.os.Handler.dispatchMessage(Handler.java:95) JS: android.os.Looper.loop(Looper.java:173) JS: android.app.ActivityThread.main(ActivityThread.java:6459) JS: java.lang.reflect.Method.invoke(Native Method) JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:938) JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
from nativescript-twilio-video.
@praveshkhatana
Here's an angular example.
https://github.com/armackey/nativescript-twilio-video/tree/master/demo-ng
Good luck.
from nativescript-twilio-video.
Related Issues (19)
- .NullPointerException: Video renderer must not be null HOT 1
- NativeScript 6 support HOT 4
- Some typescript type errors HOT 10
- Switch camera option HOT 3
- Create feature that allows users to switch from front camera to rear
- toggle_local_video doesn't work on iOS HOT 2
- remote video not loading (ios and android), twilio console shows devices are connected. HOT 6
- :(
- Is this plugin operational? HOT 4
- getting error after run code Cannot find name UIViewContentMode, UIView and UIViewContentMode
- Hi Armackey, I just integrated your plugin is working well, but i need a notify user when he is getting video call from other user even when app closed or open, Please share code if you have !!! , Right now its working well when mobile is opened video chat page tried to connect at same in other mobile... HOT 1
- Way to select codec ? HOT 12
- nativescript-twilio consulting? HOT 1
- Not receiving remote video feed of Android on IOS HOT 10
- Webpack compatibility HOT 6
- m
- How to turn off the speaker?
- video chat not working in Samsung Galaxy s9+ and s5 HOT 13
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 nativescript-twilio-video.