Twilio' Twilio-Video-app-android' Github应用程序视频通话应用程序在加入房间时崩溃
我是Twilio的新手,我正在开发一个用于视频通话的Andorid应用程序,我从Github的Twilio“ Twilio-Video-App-android”开始 但是当我单击加入房间时,应用程序崩溃了 “ boolean com.twilio.video.localaudiotrack.isrealed()'在null对象参考上” 无法理解为什么向您展示此异常向您提供帮助!
I am new to twilio and i am developing a andorid app for video calling i have started with the twilio 'twilio-video-app-android' from github
But app crashes when i click on join room with an exception
"boolean com.twilio.video.LocalAudioTrack.isReleased()' on a null object reference"
Unable to understand why is it showing this exception looking fwd to you help THANKS!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到了视频QuickStart-Android样本同样的致命例外。我注意到这一点:
这是崩溃的位置:
但是问题不存在,问题是轨道的初始化。这些仅在成功许可授予后进行实例化,因此,如果该应用程序已经具有未达到代码路径的所需权限,则不会初始化轨道,并且连接代码会爆炸。在(较小)QuickStart应用程序中为我添加单个代码语句:
@philnash我希望QuickStart示例将被更新,因为它非常需要它。它不使用Androidx,依赖于弃用的API(例如PeferenceManager),该代码带有棉绒警告,它针对的是2019年的Android等。它会产生不必要的痛苦和成本来整合Twilio视频,而当样本不保留最新情况时。
I saw the same fatal exception with the video-quickstart-android sample. I noticed that:
This is the location of the crash:
But the problem is not there, it is the initialisation of the tracks that is the issue. These are only instantiated after a successful permission grant, so if the app already has the required permissions that code path is not reached, the tracks are not initialised, and the connect code blows up. Adding a single code statement into the code as follows fixed it for me in the (smaller) quickstart app:
@philnash I hope the quickstart sample will be updated as it badly needs it. It's not using AndroidX, is reliant on deprecated APIs (e.g. PreferenceManager), the code is littered with lint warnings, it targets the 2019 release of Android etc. It creates unnecessary pain and cost to integrate Twilio Video when samples are not kept up to date.