GithubHelp home page GithubHelp logo

Comments (8)

armackey avatar armackey commented on September 10, 2024

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.

praveshkhatana avatar praveshkhatana commented on September 10, 2024

from nativescript-twilio-video.

armackey avatar armackey commented on September 10, 2024

Maybe sometime in the future.

Gonna close this.

from nativescript-twilio-video.

cerireyhan avatar cerireyhan commented on September 10, 2024

@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.

armackey avatar armackey commented on September 10, 2024

@cerireyhan

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.

armackey avatar armackey commented on September 10, 2024

Also, if you'd like to make a pull request with Angular, that's totally fine!

from nativescript-twilio-video.

cerireyhan avatar cerireyhan commented on September 10, 2024

@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.

armackey avatar armackey commented on September 10, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.