docs: function initCapture(el) {
    // read the capture instructions
    var configText = el.getAttribute('rtc-capture') || '';
    var res = el.getAttribute('rtc-resolution') || el.getAttribute('rtc-res');
    var fps = el.getAttribute('rtc-fps');
  
    if (res) {
      configText += ' min:' + res + ' max:' + res;
    }
  
    if (fps) {
      configText += ' minfps:' + fps + ' maxfps:' + fps;
    }
  
    // patch in a capture method to the element
    el.capture = enableCapture(el, captureConfig(configText));
  
    // trigger capture
    el.capture(function(stream) {
      // broadcast the stream through the session manager
      if (sessionMgr) {
        sessionMgr.broadcast(stream, { name: el.id });
      }
    });
  }