Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
web:camera [2018/04/14 09:09] – external edit 127.0.0.1web:camera [2022/06/03 13:24] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +==== See Also ====
 +[[web:cameradevice|GraffitiWebCameraDevice]]
 +
 ==== Enumerations ==== ==== Enumerations ====
 ^ Name      ^ Values       ^ ^ Name      ^ Values       ^
Line 9: Line 12:
 ==== Events ==== ==== Events ====
 ^ Definition      ^ Description       ^ ^ Definition      ^ Description       ^
-| FrameReceived( frameData as [[http://developer.xojo.com/string|String]] ) | BASE64 encoded image data received from camera. |+| DevicesLoaded() | Raised when the browser has sent the list of supported devices. | 
 +| FrameReceived( frameData as String ) | BASE64 encoded image data received from camera. | 
 +| StreamError( errorMessage as String ) | Raised when an error has occurred while streaming the media. This is usually a fatal error meaning that support is lacking in the browser or there's a problem with the device. |
  
 ==== Methods ==== ==== Methods ====
 ^ Definition      ^ Description       ^ ^ Definition      ^ Description       ^
 +| DeviceExists( deviceId as String ) as Boolean |
 | Pause() | Pause real-time display. | | Pause() | Pause real-time display. |
 | Play() | Play real-time display. | | Play() | Play real-time display. |
 | RequestFrame() | Get a single frame from the real-time display. | | RequestFrame() | Get a single frame from the real-time display. |
-| Snapshot( Quality as [[http://developer.xojo.com/double|Double]] = 0.5 ) | Grab a JPEG capture of the display with quality set at Quality (0.0 to 1.0) |+| Snapshot( Quality as Double = 0.5 ) | Grab a JPEG capture of the display with quality set at Quality (0.0 to 1.0) |
 | Stop() | Stop real-time display. | | Stop() | Stop real-time display. |
  
 ==== Properties ==== ==== Properties ====
 ^ Name      ^ Type       ^ Default Value       ^ Description       ^ ^ Name      ^ Type       ^ Default Value       ^ Description       ^
-IsPlaying [[http://developer.xojo.com/boolean|Boolean]] | False | True when real-time display is playing. | +Devices() as GraffitiWebCameraDevice All supported devices
-| Supported | [[http://developer.xojo.com/boolean|Boolean]] | False | True if the user's browser supports the API. |+| isPaused | Boolean | False | True when real-time display is paused
 +| isPlaying | Boolean | False | True when real-time display is playing. | 
 +| Supported | Boolean | False | True if the user's browser supports the API. |
  
-==== Examples ==== +==== Notes ==== 
-There are currently no examples for this class.+=== Security === 
 +Most modern browsers, for security reasons, will not allow access to the computer's camera unless the page is loaded over a secure (HTTPS) connection. This means you must deploy with a valid certificate or text locally over HTTPS with a self-signed certificate.