102 Commits

Author SHA1 Message Date
Christopher Rienzo
1cf4981a82 Merge pull request #1553 in FS/freeswitch from ~THEHUNMONKGROUP/freeswitch:feature/FS-11287-provide-option-for-user-managed to master
* commit '96af587bf325ce35459cbd82e2e79bda0133a810':
  FS-11287: Provide option for user managed streams in Verto
2018-08-28 14:16:50 +00:00
Christopher Rienzo
abca94578b Merge pull request #1544 in FS/freeswitch from ~THEHUNMONKGROUP/freeswitch:bugfix/FS-11280-allow-overriding-permissioncallback to master
* commit '36d9f7bc5e4a1644cdcf8c00df976d5283885ea3':
  FS-11280: Allow overriding permissionCallback per Verto dialog
2018-08-28 13:05:53 +00:00
Christopher Rienzo
2fd87793b9 Merge pull request #1552 in FS/freeswitch from ~THEHUNMONKGROUP/freeswitch:feature/FS-11286-add-onremotestream-callback-to-verto to master
* commit '61cdf6361739f0ecaef8d2766aa0bd5bb45ed731':
  FS-11286: Add onRemoteStream callback to Verto dialogs
2018-08-24 13:16:54 +00:00
Christopher Rienzo
288779cda2 Merge pull request #1545 in FS/freeswitch from ~THEHUNMONKGROUP/freeswitch:bugfix/FS-11281-verto.newcall-dialog-callback-overrides to master
* commit '5f96f669c2fe7f133164aab735b412bef794d932':
  FS-11281: Verto.newCall dialog callback overrides should be set before invite
2018-08-24 12:57:49 +00:00
Chad Phillips
ecdae10548 FS-11279: Wrap verto.clientReady message callback in check for onMessage callback function
The verto.clientReady event calls the onMessage callback function passed in
the Verto object. We should check for the existence of this callback function
before trying to call it.
2018-08-22 18:12:13 -04:00
Chad Phillips
96af587bf3 FS-11287: Provide option for user managed streams in Verto
The Verto libs currently have total control over the streams associated with
placing any kind of call, handling both their creation and teardown
automatically.

This patch provides the option for a developer to instead pass pre-created
MediaStream objects when instantiating the Verto object, or when calling
Verto.newCall(), and the library will bypass the work of creating those
streams, and of destroying those streams when the call is torn down.

This is particularly useful if the application wants to manage its own streams,
such as re-using them in other non-Verto aspects of the application.

The patch also creates some internal convenience functions for managing the
video element related to a local video stream.
2018-07-26 17:03:24 -05:00
Chad Phillips
61cdf63617 FS-11286: Add onRemoteStream callback to Verto dialogs
This patch adds an onRemoteStream callback, which can be specified on the Verto
instance, or per dialog. The callback is fired when the remote stream from a
call is received, and receives two arguments, the first is the remote stream,
the second is the Verto dialog object.
2018-07-26 15:34:53 -05:00
Chad Phillips
954b2564b2 FS-11283: iOS doesn't support beforeunload, use recommended pagehide for that platform
$.verto.unloadJobs queue leverages the 'beforeunload' event to perform work
prior to browser page unload.

However, iOS does not support that event. Its equivalent event is 'pagehide'.

This patch uses the pagehide event on iOS, and beforeunload for all others.
2018-07-26 14:19:28 -05:00
Chad Phillips
5f96f669c2 FS-11281: Verto.newCall dialog callback overrides should be set before invite
Verto.newCall() permits passing custom callback functions per call that
override the default dialog callbacks inherited from the Verto object.
However, they are currently set after calling the invite() function, and it's
possible that some of these callbacks could be called during the invite()
function's execution.

To avoid a race condition, move setting these custom callbacks on the dialog
to happen before calling invite().
2018-07-26 13:51:27 -05:00
Chad Phillips
36d9f7bc5e FS-11280: Allow overriding permissionCallback per Verto dialog
Currently the 'permissionCallback' object is only available at the Verto
instance level. This is problematic in multi-call scenarios, where an
individual call dialog needs access to the onGranted/onDenied callback
functions.

The patch adds a check for existence of onGranted/onDenied callback functions
at the dialog level, with a fallback to the original behavior of calling
onGranted/onDenied from the Verto instance if it's not available on the dialog.
This preserves backwards compatibility while allowing per-dialog overrides
going forward.
2018-07-26 13:37:32 -05:00
Marcell Guilherme Costa da Silva
ee1418a5ca FS-11262 [verto_communicator] prevent vertojs from stop retrying socket connection by undefined socketfallbackurl 2018-07-19 15:26:45 -03:00
netoguimaraes
68e256597a FS-11211 - [verto_communicator]: Adding turnServer and socketFallbackUrl options. 2018-06-29 14:12:19 -03:00
StefanYohansson
90dad5af88 [verto_communicator] Fix to make video devices change without restart.
Fix menu background for lower resolutions.
2017-09-29 09:43:32 -03:00
Victor Torres
67dad06398
FS-10654: [verto] implementing replace prototype in verto dialog 2017-09-08 14:12:31 -03:00
Mike Jerris
9127c41316 Merge pull request #1031 in FS/freeswitch from ~THEHUNMONKGROUP/freeswitch:feature/FS-9683-pass-call-recovery-status-to-verto to master
* commit '34e491ffa1dca32846d1e0fb97e71f5ac7c34d22':
  FS-9683: Pass call recovery status to Verto
2017-08-10 18:41:39 +00:00
Anthony Minessale
89e3a7bb4a FS-9979: [verto.js] When verto client rejects a call returns hangup cause NORMAL_CLEARING #comment passing neither cause or causeCode will result in normal clearing, passing either one of cause or causeCode will result in that value being passed and parsed on the server side, if the cause is valid it will be accepted otherwise it will try to validate causeCode instead, if neither are true it defaults to normal clearing #resolve 2017-07-13 12:52:04 -05:00
Chad Phillips
34e491ffa1 FS-9683: Pass call recovery status to Verto
Previously, users implementing a Verto workflow where both user login and
placing a new call are automated (eg., visiting a URL, and the videoconference
loads automatically) faced the challenge of not having a reliable way to know
that a page load will result in Verto's call recovery mechanism reconnecting
an existing detached call or not.

This adds a verto.clientReady JSON-RPC message, emitted after all calls are
re-attached, which contains a 'reattached_sessions' array, containing the
sess_id of any reattached session.

Client side, this can be caught in the onMessage handler, under the
$.verto.enum.message.clientReady key.
2017-07-06 13:54:08 -07:00
Anthony Minessale
b6a740a4cc FS-10360: [freeswitch-core,verto.js] FireFox Screen Sharing 2017-06-02 12:34:40 -05:00
Anthony Minessale
c07ad8c263 FS-10285: [verto.js] Device enumeration in Edge -- remove debug 2017-05-02 17:27:43 -05:00
Anthony Minessale
eafdc9d75b FS-10285: [verto.js] Device enumeration in Edge #resolve 2017-05-02 17:12:24 -05:00
Anthony Minessale
da6b9e001c FS-9742: [mod_conference,mod_cv] Refactor canvas zoom code #resolve 2017-03-09 11:54:13 -06:00
François
aada7a56a1 FS-9728 fix dynamic media tag on verto.newCall method 2016-11-11 14:05:53 +01:00
Chad Phillips
f566467cd0 FS-9640: Allow access to Verto stream object via callback
Exposes Verto MediaStream objects via the onGranted() callback
2016-10-13 10:11:57 -07:00
Waldyr de Souza
5941a60266 FS-9552 add to verto communicator toggle deaf status button 2016-09-29 12:06:21 -05:00
Waldyr de Souza
ecf5a0ce5c FS-8076 [verto_communicator] Ask before closing the page if a call is in progress. 2016-09-28 15:19:39 -03:00
Anthony Minessale
c409499cd9 FS-9576 #resolve [Add Realtime Text] 2016-09-27 16:40:43 -05:00
davidlin
5a0e1af5d6 FS-9469
added onGrant/onDenied callbacks in onStream/onError of RTCCallbacks
so client code gets notified of webrtc permission change immediately

remove whitespace changes
2016-08-31 12:37:28 -07:00
Italo Rossi
040b83a7af FS-9157 [verto] Added possibility to use dedicated audio/video tags for each dialog 2016-05-12 18:34:23 -03:00
Anthony Minessale
4d180b1aa1 FS-7800 add canvas id arg to setVideoLayout 2016-03-18 18:30:49 -05:00
Anthony Minessale
f93668e3fd FS-7800 fix some stuff in multi-canvas 2016-03-18 18:21:25 -05:00
Anthony Minessale
3f7d1a5674 FS-8617 #resolve [Add gain and vol seperate to verto] 2015-12-04 13:55:43 -06:00
Anthony Minessale
833c193d04 FS-8264 #resolve [Add all the reservation IDs in the return of "list-videoLayouts" command] 2015-11-27 13:25:36 -06:00
Anthony Minessale
ae05a19edf FS-8401 refactor the sinkid function into verto lib 2015-11-18 14:43:29 -06:00
Anthony Minessale
8293dd03d0 FS-8546 #resolve [Make original video demo back-compat with livearray-json-status] 2015-11-16 17:02:07 -06:00
Anthony Minessale
67491b102c FS-8543 #resolve [Improve mute handling on conference and WebRTC] 2015-11-16 11:31:34 -06:00
Anthony Minessale
cc00d1d098 FS-8245 #resolve [Video Resolutions available in "Video Quality" drop down are not always correct] 2015-09-30 03:30:24 -05:00
Anthony Minessale
90124856d4 FS-8213 #resolve [Add support to skip permission checks on verto] 2015-09-25 20:00:03 -05:00
Stefan Yohansson
77fd36fa24 FS-8205 [verto_communicator] Add splash screen feature 2015-09-25 10:08:09 -05:00
Anthony Minessale
6a9f936f72 FS-8202 #resolve [Stop peer when ending screen share] 2015-09-22 11:21:32 -05:00
Anthony Minessale
9ab7a331f3 fix small typo in js and regen minified js 2015-09-18 20:54:24 -05:00
Anthony Minessale
052fed5fc3 FS-8181 #resolve [Verto check for camera perms fails init when no camera is present] 2015-09-17 15:09:19 -05:00
Anthony Minessale
4f4f01b36e FS-8180 #resolve [param to enable/disable video malfunction] 2015-09-17 11:12:44 -05:00
Anthony Minessale
692bd55f6b FS-8046 fix typo 2015-08-28 17:47:05 -05:00
Anthony Minessale
f21dc780cd FS-8046 change error back to log 2015-08-28 17:12:19 -05:00
Anthony Minessale
d36c9fdd56 FS-8087 #comment fix typo in callback name 2015-08-28 14:34:31 -05:00
Anthony Minessale
6831fa7015 FS-8087 #comment always make one basic call to getusermedia to ensure perms are ok 2015-08-28 11:41:02 -05:00
Anthony Minessale
0dd6b8403e FS-8087 #comment pass resCheck callback into deviceParams 2015-08-28 10:47:15 -05:00
Anthony Minessale
d025aaa3ad FS-8087 #comment add missing bit from last commit 2015-08-28 09:45:52 -05:00
Anthony Minessale
c1628690b6 FS-8087 #comment fix issue in camera selection on recovery, refactor to use localStorage, change res detection, reload on network change 2015-08-28 09:42:37 -05:00
Anthony Minessale
bfb59ae77c FS-8046 add deviceParams method 2015-08-27 16:14:52 -05:00