尝试使用 Open Tok React Native 库时出错,otk_anvil.cpp:467 [英] Error when trying to use Open Tok React Native library, otk_anvil.cpp:467

查看:59
本文介绍了尝试使用 Open Tok React Native 库时出错,otk_anvil.cpp:467的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Open Tok React Native 库,https://github.com/opentok/opentok-react-native/,但我不断收到错误消息:

I'm trying to use the Open Tok React Native library, https://github.com/opentok/opentok-react-native/, but I keep getting an error:

[ERROR] otk_anvil.cpp:467 - otk_anvil_on_session_info failed. nCode=1
[ERROR] rumor_client_v1.c:312 - otk_rumor_v1_client_send (pClient == NULL) rumor client is not initialized and cannot send message

无法弄清楚是什么原因造成的.

Can't figure it out what is causing it.

我试图测试他们的样本,但我遇到了同样的错误.即使是一个干净的/新的项目也会产生同样的结果.

I tried to test their sample but I'm getting the same error. Even a clean/new project is resulting in the same.

当前设置:

➜  BasicVideoChat git:(master) ✗ react-native -v
react-native-cli: 2.0.1
react-native: 0.59.5

Xcode:10.3 在 macOS Mojave (10.14.6)

Xcode: 10.3 on macOS Mojave (10.14.6)

<OTSession
              apiKey={this.apiKey}
              sessionId={this.sessionId}
              token={this.token}>
              <OTPublisher style={{width: 100, height: 100}} />
              <OTSubscriber style={{width: 100, height: 100}} />
            </OTSession>

它应该呈现用户和订阅者的视频,但我只在控制台上看到带有这些日志的空白/白色屏幕.

It should render the user and subscribers videos, but I'm only getting a blank/white screen with those logs on console.

推荐答案

该错误确实是由过期的令牌引起的.即使我能够通过浏览器使用它,但在我在设备上测试它之前它已经过期.

Indeed that error was caused by an expired token. Even when I was able to use it via browser it was expiring before I test it on the device.

这篇关于尝试使用 Open Tok React Native 库时出错,otk_anvil.cpp:467的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆