title: WebRTC: Is it possible to control the microphone and volume levels
body: <p>I am working on a demo site which includes a slide-out widget that allows a user to place a call.</p>
  
  <p>I am using the SIPml5 tool along with the webrtc2sip back end for handling the call. That part is all set up and properly working. So now I am looking at seeing if I can control the microphone and volume levels using sliders in the widget. Is this even possible? I look everywhere online and haven't had much luck.</p>
  
  <p>I did find a couple sites that showed me how I can control the volume of the audio tag within the jQuery slider code. So I tried setting it up like the code below:</p>
  
  <pre><code>$(function() {
          $( "#slider-spkr" ).slider({
            orientation: "vertical",
            range: "min",
            min: 0,
            max: 100,
            value: 60,
            slide: function( event, ui ) {
              var value = $("#slider-spkr").slider("value");
              document.getElementById("audio_remote").volume = (value / 100);
            },
            change: function() {
              var value = $("#slider-spkr").slider("value");
              document.getElementById("audio_remote").volume = (value / 100);
            }
          });
      });
  </code></pre>
  
  <p>Unfortunately, this isn't working either. So I'm not sure if I am allowed to do this when using SIPml5, or if my jQuery code needs adjusted.</p>
  
  <p>Has anyone else had any luck with adding microphone/volume controls? Thanks for your help.</p>