tokbox

Putting a video call on hold with OpenTok

江枫思渺然 提交于 2019-12-11 15:39:11
问题 I've been researching webRTC platforms and found that OpenTok seems to provide the most customizable functionality. Before I dive nose deep into it, I wanted to make sure that it could perform one key requirement: During a 1-1 video call between two users A and B, I want one of these users (lets go with user A) to be able to receive a call from a third party (lets call the third party user C). When A receives a call from C, while in a call with B, I want A to be able to put the call with B on

How to transfer tokbox archive videos into my own server

两盒软妹~` 提交于 2019-12-11 10:39:15
问题 i am very new to tokbox and interested to know whether i can download and store the archived videos/data from tokbox into my own server through rest api without using microsoft azure or amazon s3. Thanks in advance.. 回答1: You have two options here. You can provide your own S3/azure bucket, or you can use the default OpenTok bucket, where you will have your archives available for downloading for 72 hours. If you don't want to use your own bucket, just let OpenTok store it, and, when you have

Tokbox screenshare issue

↘锁芯ラ 提交于 2019-12-11 06:23:52
问题 I am using session.unpublish(Publisher) to stop screen share and then republish video stream publisher to start video publisher, but next time when I start screen share it creates problems. In tokbox js what is the best way to stop screen share. Actually I have two publisher when screenshare is on AudioVideoPublisher and ScreenPublisher both in different container as screenshare does not publish Audio with screen so I have also need AudioVideoPublisher in that case. 回答1: The best way to stop

#OpenTok how enumerate streams in a session?

耗尽温柔 提交于 2019-12-11 05:07:11
问题 I'm subscribing to only one of many publishers, one at a time (video monitor). So, I initially open all subscribers and when the onconnected event is fired, I store each of them in a hash table (stream.connection.data holds ID). I subscribe to the first, then unsubscribe and subscribe to the next. However, I've had to kill the onconnected event handler so they didn't keep firing multiple times: Tokbox streamCreated being called same number of times client is called Now, when a new participant

OpenTok - How to publish/unpublish manually?

末鹿安然 提交于 2019-12-10 13:03:30
问题 I looked at these links http://www.tokbox.com/opentok/api/tools/js/documentation/overview/publish.html http://www.tokbox.com/opentok/api/tools/js/tutorials/overview but their are no examples for publishingunpublishing manually, that is, publishing/unpublishing without using 'streamCreated'/'streamDestroyed' event handler respectively. The reason I want to do this is that I have a button to publish/unpublish so that the user can do it at will. Is there a way to do this? 回答1: Yes and it is very

OpenTok accessDenied issue in Chrome

点点圈 提交于 2019-12-09 13:34:52
问题 I'm having some trouble with the OpenTok 2 API. When I start to publish a stream and I'm prompted to allow or deny the website to use my webcam and microphone, if I allow allowed() should run, but if I deny denied() should run. publisher.addEventListener('accessAllowed', allowed); publisher.addEventListener('accessDenied', denied); function allowed() { console.log('Allowed'); } function denied() { console.log('Denied'); } It works as expected in Firefox. In Chrome accessAllowed works, however

How do I resolve a WebRTC PeerConnection.getStats error?

最后都变了- 提交于 2019-12-08 08:24:37
问题 So, we have a WebRTC enabled app that is actually working in the sense that it's establishing sessions, we're able to connect to them, people are publishing streams, other people are subscribing and unsubscribing to those streams, etc. etc. But we keep getting errors from WebRTC which say 'PeerConnection.getStats. Already getting the stats!' The error occurs in the video stream itself. White text on a black background, instead of the video. Also, in the console log, we're getting the

How do I resolve a WebRTC PeerConnection.getStats error?

怎甘沉沦 提交于 2019-12-06 14:48:54
So, we have a WebRTC enabled app that is actually working in the sense that it's establishing sessions, we're able to connect to them, people are publishing streams, other people are subscribing and unsubscribing to those streams, etc. etc. But we keep getting errors from WebRTC which say 'PeerConnection.getStats. Already getting the stats!' The error occurs in the video stream itself. White text on a black background, instead of the video. Also, in the console log, we're getting the following errors: Uncaught TypeError: Cannot call method 'getStats' of undefined TB.min.js:208 PeerConnection

OpenTok accessDenied issue in Chrome

给你一囗甜甜゛ 提交于 2019-12-03 16:19:21
I'm having some trouble with the OpenTok 2 API . When I start to publish a stream and I'm prompted to allow or deny the website to use my webcam and microphone, if I allow allowed() should run, but if I deny denied() should run. publisher.addEventListener('accessAllowed', allowed); publisher.addEventListener('accessDenied', denied); function allowed() { console.log('Allowed'); } function denied() { console.log('Denied'); } It works as expected in Firefox. In Chrome accessAllowed works, however, accessDenied doesn't. Instead I get the following error: OT.Publisher.onStreamAvailableError

Integrate opentok video conferencing into parse.com + iOS app

房东的猫 提交于 2019-12-03 03:46:46
This question is not only aimed at code but my app design as well. I have an iphone app that requires opentok to handle the video/audio sessions. I have gone through basic samples but what I am confused about is session management. For example, if my iphone app wants to call a user from a mapview, how do I do that if all I have is this user's location (coordinates)? How do I ensure that the session I am publishing gets to that particular user somehow and that user subscribes to it? Currently I don't have any backend in my app. All I may have is location data of N users, who can possibly talk