]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-11287: Provide option for user managed streams in Verto
authorChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 22:03:24 +0000 (17:03 -0500)
committerChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 22:03:24 +0000 (17:03 -0500)
commit96af587bf325ce35459cbd82e2e79bda0133a810
tree16d2cd31ea1d8b3c5c65652b0ac8663e02b80b8c
parenta380f125e17f13ab27efad6a35e8a6e42bdf3366
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.
html5/verto/js/src/jquery.FSRTC.js
html5/verto/js/src/jquery.verto.js