nl_tokens: Shim for MediaDevices#getUserMedia method
pl_tokens: function getUserMedia ( constraints ) { if ( props ( 'navigator.mediaDevices.getUserMedia' ) . hadBy ( window ) ) { let medias = props ( 'navigator.mediaDevices' ) . from ( window ) return medias . getUserMedia ( constraints ) } let userMediaGetter = navigator . getUserMedia || navigator . webkitGetUserMedia || navigator . mozGetUserMedia || navigator . msGetUserMedia if ( ! userMediaGetter ) { throw new <mask> ( 'getUserMedia is not supported by this browser' ) } return new Promise ( ( resolve , reject ) => { userMediaGetter ( constraints , resolve , reject ) } ) }