tokbox | Tokbox Server SDK for Google 's Go language | Bot library
kandi X-RAY | tokbox Summary
kandi X-RAY | tokbox Summary
Tokbox Server SDK for Google's Go language ("Golang")
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- NewSession creates a new session
- client returns a http . Client for the given context .
- New creates a new tokenbox
tokbox Key Features
tokbox Examples and Code Snippets
Community Discussions
Trending Discussions on tokbox
QUESTION
We're trying to determine a way to send DTMF into the call. As we understand, It's only possible by using this Vonage API -> https://developer.nexmo.com/api/voice?theme=dark#play-dtmf. But initiating a call using TokBox API -> "v2/project/{this.ApiKey}/dial" does not provide call "leg UUID" in response. There are only these properties in response:
{ "id": UUID, "connectionId": UUID, "streamId": UUID }
Is there any way to get leg UUID from TokBox/Nexmo API call response or by any other way?
...ANSWER
Answered 2021-Mar-03 at 14:17if you had access to the AT command sets, you could send the modem the following standard AT command:
AT+VTS="0123456789#*ABCD", 10
That command asks the modem to play for 1 second all the 16 DTMF tones.
It works. I used it several times in the past.
Enrico Migliore
QUESTION
I'm trying to install Tokbox prebuilt library on Yocto, but I'm getting the following QA error.
...ANSWER
Answered 2021-Jan-11 at 18:31As far as I understood, libc++ is a new implementation of the C++ standard library that is coming from LLVM/clang. You then need to add meta-clang
layer to your bblayers.conf
(after having it cloned obviously) and add libcxx
to the RDEPENDS
of your recipe.
c.f.: https://layers.openembedded.org/layerindex/recipe/39646/
However, not sure if it wouldn't be better anyway to recompile Tokbox if you have the sources.
QUESTION
I did screen sharing (tokbox) for my application. It works fine inside my app. But I cannot share screen outside my app... Can anyone plz help? https://tokbox.com/developer/guides/screen-sharing/android/
...ANSWER
Answered 2020-Dec-11 at 04:17I had also faced the same issue and had mailed to tokbox support. This was their response:
The way our screen capture code works is that it recursively traverses the view hierarchy and copies those images to a buffer and then send that buffer over on the webrtc data pipe. Hence once the app is pushed to the background, we could not traverse the view hierarchy and copy the image, so screen sharing works until we are in the application (Android or iOS native app). If you want to share the screen view of Opentok app only, it will work but outside the app won't work. It's just to take care of the privacy and security aspects of the mobile app users.
So according to them you cannot share screen outside the application. It will only work when app is in foreground.
UpdateAfter constantly asking the tokbox support team I got the following reply from them:
To screenshare the content outside of your application on Android and iOS can be achieved. For Android, you need to use the Media Projection API together with Vonage/Tokbox Custom Capturer. For iOS, you need to use the iOS ReplayKit together with Vonage/Tokbox Custom Capturer. Basically, the implementation is to get a frame from Media Project API or Replaykit and then pass it via a custom capturer.
Following their response, I found Accelerator Core Android repo which showed how to integrate Media Projection API with tokbox. More specifically these two files: ScreenSharingFragment.java and ScreenSharingCapturer.java
Using these two files I am now able to share screen outside my application.
Note: Apps that target Android 9 (API level 28) or higher should use Foreground services or else your app will crash due to security reasons.
QUESTION
I am working on an IOS application(SWIFT) in which i have used tokbox for screensharing, i am able to share the screen but not able to stop screensharing.
This is the code I have used for screensharing.
...ANSWER
Answered 2020-Oct-29 at 12:49To stop screen sharing will need to stop the publisher from streaming. To do that you can call:
[OTSession unpublish:error:]
More info is available on the Video API guides
For your case, where you are adding screen sharing to an existing call, you will need to create an additional publisher for the screen sharing rather than editing the existing one. To use the existing publisher it will require the publisher to be reinitialised to switch between publishing a camera feed vs a screen which will stop publishing audio too.
In addition to creating a new publisher, you need to create a new subscriber for the other user, you can do that in the subscriberDidConnect
delegate function on the OTSubscriberDelegate
.
Additionally, you will need to handle the destruction of both the new publisher and subscriber. This will be done in the delegate functions are you using already on the OTSessionDelegate
and OTPublisherDelegate
.
I have created a demo app which demonstrates this behaviour.
QUESTION
i am having big problems with my release version of my app. (https://play.google.com/store/apps/details?id=com.conta.ftof try to download it to help me if you can) In the debug version everything works, but in the relase version as soon as I authenticate firebase with a phone number or just authenticate and click on the recycler view button the app crashes ... I recently added the sha keys -1 and sha-256 to the firebase project and I added the new json file because the authentication was not working, now the authentication works great but as soon as you are authenticated, as I have already said, the app goes into crush. I don't know if the fault is google ads, which I added 1 week ago in contactsactivity ... The strange thing is that the debug version is fully functional ... I leave you the code...
LogCat of crush
...ANSWER
Answered 2020-Oct-16 at 19:32If you are a beginner then i recommend you disable minifyEnabled
in you build.gradle. basically the proguard
obfuscates the code and you might not be escaping your model files in the proguard
rules
QUESTION
Screen Capture API, specifically getDisplayMedia()
, currently supports screensharing and sharing the audio playing in your device (e.g: youtube) at the same time. Docs. Is this currently supported using TokBox/Vonage Video API? Has someone been able to achieve this?
I guess there could be some workaround using getDisplayMedia and passing the audio source when publishing, e.g: OT.initPublisher({ audioSource: newDisplayMediaAudioTrack })
, but doesn't seem like a clean solution.
Thanks,
...ANSWER
Answered 2020-Sep-11 at 00:49Manik here from the Vonage Client SDK team.
Although this feature does not exist in the Video Client SDK just yet, you can accomplish the sharing of audio with screen by creating a publisher like so:
QUESTION
I am creating app which required to communicate over live video call. For this i used (https://tokbox.com/developer/sdks/android/) Tokbox API (Vonage API). Bottom right corner camera is my camera. And Full screen camera is opponent camera.
Issue: When i run the app in android 8 OS version. It perfectly works fine It shows both video. When i run the app in android 10 OS version it hide my own bottom corner video when opponent video call.
...ANSWER
Answered 2020-Aug-25 at 09:48Sorry, I don't like to give an answer to my own question but I want to do it because it will help other developers.
This line I need to add in after session connected.
QUESTION
I have a Beginner's question here...
i'm a mobile app, and desktop app developer, so I'm very bad in HTML & JavaScript and the entire web technology ... I have a very simple case but unable to solve it, so please help me out here
I have a very simple and straightforward html file, this file has an iFrame or JavaScript (i have both options) for a video chat API, I want to be able to pass a parameter with the URL, and this parameter should be part of the iFrame or the JavaScript call
This is the original html code:
...ANSWER
Answered 2020-Jun-07 at 12:53html
QUESTION
I'm using the TokBox / OpenTok screen sharing API for web browser, and when publishing a screen I'm using "publishAudio: true", but the subscriber does not receive any audio. The subscriber does receive the screen video though.
Does anyone know how to solve this audio issue? I'm using Google Chrome on macOS Catalina.
...ANSWER
Answered 2020-May-14 at 15:31I need see more of you concrete case code but i hope this can help you.
You need to send the audioSource. Example:
QUESTION
I have the requirement to collect the total number of streamed minutes for all the tokbox sessions of the past month. Basically something similar to the billing report tokbox provides. I don't need it "live", a delay of minutes or even hours would be acceptable.
The inspector does not seem to have an API, and we are currently not archiving the sessions.
My current idea would be to use the Session Monitoring events and collect all Stream Destroyed
events. I would then store them somewhere and use timestamp - stream.createdAt
as the duration of each stream.
It feels a bit brittle at first glance - I don't want to report wrong numbers or miss something. Am I on the right track or is there an easier/better solution?
...ANSWER
Answered 2019-Jul-07 at 08:23TokBox support confirmed that is is a valid way to go and that the Session Monitoring events are reliable enough. So we will go ahead with the idea of using the StreamDestroyed
events.
Unfortunately, this is not equivalent to the subscribed minutes. Calculating those should be possible using the events, but could become quite complex.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tokbox
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page