opentok

OpentTok (iOS) How to subscribe to hasAudio stream changes

ぐ巨炮叔叔 提交于 2019-12-11 18:07:18
问题 I need a possibility in the TokBox iOS SDK to find out if a subscribed stream has audio dynamically / via an event. (OTStream.hasAudio) OTSubscriberDelegate provides callbacks for the subscribed video state subscriberVideoEnabled/Disabled but I can't find anything for audio. The JS SDK provides the StreamPropertyChangedEvent for this. The Android SDK provides the StreamPropertiesListener for this. iOS seems to be the only platform that doesn't have a proper solution. 回答1: TokBox Developer

Tokbox streamCreated being called same number of times client is called

空扰寡人 提交于 2019-12-11 16:58:08
问题 I'm calling on a client, one-to-one, multiple times during a session and the streamCreated event gets called on the host. When I hang up, I unsubscribe and the client unpublishes. However, when I call on the client again, the streamCreated event gets called twice on the host's side. I call on the client 3, 4, 5, etc. more times and the streamCreated event fires the same number of times as I have called on the client. For example on the 7th time I call the client, streamCreated gets called 7

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

enyo.js to integrate with other javascript component

天大地大妈咪最大 提交于 2019-12-11 11:49:15
问题 I'm trying to integrate enyo.js with opentok. Can't figure how to wrap the video component which will be generated from opentok's javascript. If anyone can help me how to integrate enyo with external javascript such as opentok would be great. I have create below jsfiddle example which has video kind and opentok sample code. I would like generate the video using enyo kind but I'm newbie and need some help from experts in enyo. jsfiddle link http://goo.gl/nrsZQJ 回答1: I'm going to take a stab at

Caller doesn't get event of End Call from receiver in opentok ios sdk

☆樱花仙子☆ 提交于 2019-12-11 09:59:30
问题 I have an iphone app in which I need to manage video call from caller to receiver and its works perfectly by using Opentok framework. Video call and audio everything working fine. But I have a problem with Ending a call from receiver side without picking up the call. If receiver picked up the call and Then he ends the call then caller receives event of ending a call. But when if receiver doesn't picked up the call from app and directly end the call then caller doesn't get any event and it

How to select audioOutput with OpenTok

此生再无相见时 提交于 2019-12-11 08:54:19
问题 I am building a simple WebRTC app with OpenTok . I need to be able to select camera, audio input and audio output. Currently that doesn't seem easily possible. See opentok-hardware-setup https://github.com/opentok/opentok-hardware-setup.js/issues/18 I am loading OpenTok in my index.html file and opentok-hardware-setup.js . All looks great and I can select microphone and camera BUT not the speaker out aka audiooutput . <script src="https://static.opentok.com/v2/js/opentok.min.js"></script>

How to Know the time duration a token was streaming it's video to a session in opentok

你离开我真会死。 提交于 2019-12-11 08:52:21
问题 I connected , subscribed to a session in opentok with a token and streamed my video. Now How do I get informations like How much time did my video streamed, and many other informations which can be useful for data analysis. var apiKey = "*****"; var sessionId = "**************************"; var token = "************"; var publisher = TB.initPublisher(apiKey); var session = TB.initSession(sessionId); session.connect(apiKey, token); session.addEventListener("sessionConnected",

OpenTok CreateSession “Error with request submission”

别说谁变了你拦得住时间么 提交于 2019-12-11 05:29:55
问题 Since 31th July 2018 it doesnt work. When I tried to create a new session id, the exception return below error: "Error with request submission". var Session = OpenTok.CreateSession(mediaMode: MediaMode.ROUTED); I've tried this link as the web developer site indicates, and everything is ok. https://support.tokbox.com/hc/en-us/articles/360000046059-Desupporting-TLS-1-0 I'm using .net 4.5.2 and opentok api Version=2.4.6431.26897 Any idea? Thanks a lot 回答1: TokBox Developer Evangelist here. We

#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 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