public interface HasCameraActions
Modifier and Type | Method and Description |
---|---|
String |
captureToDataURL()
Captures the current frame of the video to an image data URL.
|
String |
captureToDataURL(String mimeType)
Captures the current frame of the video to an image data URL.
|
void |
pause()
Pauses the video stream from the camera.
|
void |
play()
Starts the video stream from the camera.
|
void |
stop()
Stops all the Tracks that is currently streaming
|
void play()
Starts the video stream from the camera. This is called when the component is loaded.
Use CameraCaptureHandler
s to be notified when the stream actually starts or if
an error occurs.
At this point the user is requested by the browser to allow the application to use the camera.
If the user doesn't allow it, an error is notified to the CameraCaptureHandler
s.
void pause()
void stop()
String captureToDataURL()
MaterialCameraCapture.captureToDataURL(String)
using "image/png".String captureToDataURL(String mimeType)
mimeType
- The type of the output image, such as "image/png" or "image/jpeg".Copyright © 2018. All rights reserved.