supported property

bool supported

Checks if the MediaStream APIs are supported on the current platform.

See also:

Navigator.getUserMedia

Implementation

static bool get supported => JS(
    'bool',
    '''!!(#.getUserMedia || #.webkitGetUserMedia ||
      #.mozGetUserMedia || #.msGetUserMedia)''',
    window.navigator,
    window.navigator,
    window.navigator,
    window.navigator);