Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-9640

Allow access to Verto stream object via callback

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.9
    • Fix Version/s: 1.8
    • Component/s: verto.js
    • Labels:
      None
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      749aa8fb3c1e5a5a9616757f56fac24381c8789f
    • GIT Master Revision hash::
      749aa8fb3c1e5a5a9616757f56fac24381c8789f
    • Target Version:
      1.8

      Description

      I don't see any way currently to get direct access to the MediaStream object that's generated for Verto calls. This would be handy for things like enabling/disabling the audio/video tracks, changing volume, etc.

      Poking around the JS libs, it seems the easiest way to expose it is by passing it as an argument to the onGranted callback that's set up in Verto.init() -- that's always called even after the user has granted perms, and the stream object can be passed straight through from RTCcallbacks.onStream().

      Perhaps a separate callback would be better, not sure. I'll start with a PR for the approach above, and adjust if you like.

        Attachments

          Activity

            People

            • Assignee:
              anthm Anthony Minessale II
              Reporter:
              thehunmonkgroup Chad Phillips
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: