opentok

Tokbox failed to create session

拟墨画扇 提交于 2020-02-23 06:39:47
问题 [Error: Failed to createSession. Error: An authentication error occurred: (403) {"code":-1,"message":"Expired token"}] I was able to create a session just fine on my localhost server, but when I put it in production - which has https - the error occurs. I am using tokbox with Meteor framework and wraping the function inside a method: const opentok = new OpenTok(Meteor.settings.public.opentok.apiKey, Meteor.settings.public.opentok.apiSecret); let createSessionSync = Meteor.wrapAsync(opentok

Tokbox failed to create session

这一生的挚爱 提交于 2020-02-23 06:39:07
问题 [Error: Failed to createSession. Error: An authentication error occurred: (403) {"code":-1,"message":"Expired token"}] I was able to create a session just fine on my localhost server, but when I put it in production - which has https - the error occurs. I am using tokbox with Meteor framework and wraping the function inside a method: const opentok = new OpenTok(Meteor.settings.public.opentok.apiKey, Meteor.settings.public.opentok.apiSecret); let createSessionSync = Meteor.wrapAsync(opentok

Tokbox failed to create session

不羁岁月 提交于 2020-02-23 06:39:05
问题 [Error: Failed to createSession. Error: An authentication error occurred: (403) {"code":-1,"message":"Expired token"}] I was able to create a session just fine on my localhost server, but when I put it in production - which has https - the error occurs. I am using tokbox with Meteor framework and wraping the function inside a method: const opentok = new OpenTok(Meteor.settings.public.opentok.apiKey, Meteor.settings.public.opentok.apiSecret); let createSessionSync = Meteor.wrapAsync(opentok

In Opentok-react-native, how do I get various events information like client connected, disconnected and so on

佐手、 提交于 2020-01-15 05:38:07
问题 I have searched a lot but couldn't find any way to find various callbacks in opentok-react-native library like when user has connected, disconnected, reconnecting and so on. I even found the documentation for OTSession where they have described the various events, but these are not working. These all events get called all together. Video call is working fine, but I want to perform various action depending upon these events renderVideoView(data) { console.log("rendering view view,, ", data);

How to connect to user's stream in TokBox

旧街凉风 提交于 2020-01-06 02:56:09
问题 I'm making a 1 on 1 video call app using TokBox. I'm opening a session using this code: [_session connectWithApiKey:kApiKey token:kToken]; after getting the didConnect message i'm publishing a stream on one user device using this code: _publisher = [[OTPublisher alloc] initWithDelegate:self]; [_publisher setName:@"PublishName"]; [_session publish:_publisher]; [self.view addSubview:_publisher.view]; [_publisher.view setFrame:CGRectMake(0, 0, widgetWidth, widgetHeight)]; What do I need to

opentok-android-sdk-2.3.1 and OpenSSL vulnerability issue

你说的曾经没有我的故事 提交于 2019-12-24 17:28:10
问题 I have an app on Google play store. Recently i got a mail subjected: Google Play 60-day deadline for resolving OpenSSL vulnerabilities It states that i'm using a version of OpenSSL, which is vulnerable to some issues. However, i'm not using OpenSSL directly. I'm using OpenTok library for Video chatting feature, which internally uses OpenSSL. I'm currently using openTok SDK version 2.3.1. But according to this link http://www.tokbox.com/blog/mobile-sdks-2-2-1-resolve-openssl-vulnerability/ all

Opentok on streamCreated subscribe makes mobile chrome freeze

你。 提交于 2019-12-24 10:07:52
问题 I am developing webRTC chat on opentok platform and vue.js. While everything is fine on desctop and mobile firefox browser, mobile chrome gets hung up when trying to subscribe to the event.stream. The weird thing is that if I activate developer tools then it will work on mobile chrome as expected so I can not debug error log on this one. I have been racking my brain on this for three days now. If anyone can help me I would appreciate it! Here is the relevant part of my code: //start the live

How to prevent more than 2 tokbox clients?

拥有回忆 提交于 2019-12-24 06:50:02
问题 I have the following code: openTokInit() { this.session = OT.initSession(this.tokboxApiKey, this.sessionId); const self = this; this.session.on('connectionCreated', function(event) { self.connectionCount++; }); if (this.connectionCount < 2) { this.session.connect(this.token, err => { if (err) { reject(err); } else { resolve(this.session); } }); } The problem is that when the if statement runs, the connectionCount is always 0, because the 'connectionCreated' event is fired a few seconds later.

How to change audio output in opentok javascript SDK?

一笑奈何 提交于 2019-12-23 20:08:42
问题 When connected to a mobile browser, the audio always defaults to the audio-only speakers (i.e. phone speakers that are close to the ear; i don't know what this is called) instead of the loud speakers. How do I make it use the loud speakers by default and give the user a choice of which speaks to use? The documentation for mobile SDKs have this but in the JavaScript SDK, only the audio source has an equivalent. Isn't this possible in opentok? If not, what workaround can I do? 回答1: Currently