public/twilio-client.1.6.1.custom.js
/**
 * Re-emit the native event, if the native mediaDevices has the corresponding property.
 * @param {MediaDevicesShim} mediaDevices
 * @param {string} eventName - Name of the event
 * @private
 * @returns {boolean} Whether the native mediaDevice had the corresponding property
 */
Re-emit the native event, if the native mediaDevices has the corresponding property.
@param {MediaDevicesShim} mediaDevices
@param {string} eventName - Name of the event
@private
@returns {boolean} Whether the native mediaDevice had the corresponding property
Re - emit the native event if the native mediaDevices has the corresponding property . @param { MediaDevicesShim } mediaDevices @param { string } eventName - Name of the event @private @returns { boolean } Whether the native mediaDevice had the corresponding property
function reemitNativeEvent(mediaDevices, eventName) {
    var methodName = "on" + eventName;
    function dispatchEvent(event) {
        mediaDevices.dispatchEvent(event);
    }
    if (methodName in nativeMediaDevices) {
        if ('addEventListener' in nativeMediaDevices) {
            nativeMediaDevices.addEventListener(eventName, dispatchEvent);
        }
        else {
            nativeMediaDevices[methodName] = dispatchEvent;
        }
        return true;
    }
    return false;
}
function reemitNativeEvent ( mediaDevices , eventName ) { var methodName = "on" + eventName ; function dispatchEvent ( event ) { mediaDevices . dispatchEvent ( event ) ; } if ( methodName in nativeMediaDevices ) { if ( 'addEventListener' in nativeMediaDevices ) { nativeMediaDevices . addEventListener ( eventName , dispatchEvent ) ; } else { nativeMediaDevices [ methodName ] = dispatchEvent ; } return true ; } return false ; }
Re-emit the native event, if the native mediaDevices has the corresponding property.
Re - emit the native event if the native mediaDevices has the corresponding property .
// Use addEventListener if it's available so we don't stomp on any other listeners // for this event. Currently, navigator.mediaDevices.addEventListener does not exist in Safari.