public static boolean isSupported ( ) { return Navigator . webkitGetUserMedia != null || Navigator . getUserMedia != null || Navigator . mozGetUserMedia != null || Navigator . msGetUserMedia != null ; }
Tests if the browser supports the Streams API . This should be called before creating any MaterialCameraCapture widgets to avoid errors on the browser .