opentok

How to disconnect all connection on a session?

那年仲夏 提交于 2021-02-20 04:25:25
问题 I wanna to disconnect all connection on a session from server but i just find how to dissconnect a connection by using forceDisconnect. Besides, I wanna destroy session when all connection disconnected and destroy token when a connection disconnected 回答1: Opentok SDET here, You can use forceDisconnect , if you want to trigger the disconnection from a single point, or use disconnect and capture StreamDestroyed events in remote peers, to act accordingly. Regarding sessions, you don't need to

How to disconnect all connection on a session?

淺唱寂寞╮ 提交于 2021-02-20 04:25:05
问题 I wanna to disconnect all connection on a session from server but i just find how to dissconnect a connection by using forceDisconnect. Besides, I wanna destroy session when all connection disconnected and destroy token when a connection disconnected 回答1: Opentok SDET here, You can use forceDisconnect , if you want to trigger the disconnection from a single point, or use disconnect and capture StreamDestroyed events in remote peers, to act accordingly. Regarding sessions, you don't need to

How to stream audio file with opentok?

时间秒杀一切 提交于 2021-02-10 05:11:03
问题 In opentok, with OT.initPublisher, you only can pass a deviceId to the audioSource. Does someone know a method to stream an audio file ? For example, I have done this: navigator.getUserMedia({audio: true, video: false}, function(stream) { var context = new AudioContext(); var microphone = context.createMediaStreamSource(stream); var backgroundMusic = context.createMediaElementSource(document.getElementById("song")); var mixedOutput = context.createMediaStreamDestination(); microphone.connect

OpenTok, How to switch publisher source from screen capturer to camera and vice versa?

坚强是说给别人听的谎言 提交于 2021-02-08 15:18:32
问题 I am trying to implement the feature that allows to switch between screen sharing capture and camera in the middle of the video session in an Android app. I use OpenTok SDK 2.5 for Android. I have researched OpenTok examples (OpenTok samples) and figured they show only one feature per program sample. Question: Should code supply two Publishers (one equipped with Camera and one with Screensharing capturer) and switch them, for example session.unpublish(); if (currentIsCamera) { session.publish

Determining if a remote subscriber is temporarily disconnected

时间秒杀一切 提交于 2021-01-28 11:08:53
问题 This is in the context of reconnection. As a moderator I want to know when a remote subscriber (a client subscriber of the stream that I publish) drops temporarily its connection. First, the subscriber events disconnect, reconnecting and reconnected are dispatched locally on the remote side, that is the guy that loses its connection. The publisher receives no events about the remote connection that gets lost. Second, I tried to use the 'signal' JS web jdk as well as the server jdk. The idea

Determining if a remote subscriber is temporarily disconnected

こ雲淡風輕ζ 提交于 2021-01-28 11:08:46
问题 This is in the context of reconnection. As a moderator I want to know when a remote subscriber (a client subscriber of the stream that I publish) drops temporarily its connection. First, the subscriber events disconnect, reconnecting and reconnected are dispatched locally on the remote side, that is the guy that loses its connection. The publisher receives no events about the remote connection that gets lost. Second, I tried to use the 'signal' JS web jdk as well as the server jdk. The idea

Error when trying to use Open Tok React Native library, otk_anvil.cpp:467

时光怂恿深爱的人放手 提交于 2021-01-28 07:50:54
问题 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. Current