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/08/02 12:50] agcyphersweb:camera [2022/06/03 13:24] (current) – external edit 127.0.0.1
Line 13: Line 13:
 ^ Definition      ^ Description       ^ ^ Definition      ^ Description       ^
 | DevicesLoaded() | Raised when the browser has sent the list of supported devices. | | DevicesLoaded() | Raised when the browser has sent the list of supported devices. |
-| FrameReceived( frameData as [[http://developer.xojo.com/string|String]] ) | BASE64 encoded image data received from camera. | +| FrameReceived( frameData as String ) | BASE64 encoded image data received from camera. | 
-| StreamError( errorMessage as [[http://developer.xojo.com/string|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. |+| 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 [[http://developer.xojo.com/string|String]] ) as [[http://developer.xojo.com/boolean|Boolean]] |+| 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. |
  
Line 28: Line 28:
 ^ Name      ^ Type       ^ Default Value       ^ Description       ^ ^ Name      ^ Type       ^ Default Value       ^ Description       ^
 | Devices() as GraffitiWebCameraDevice | All supported devices. | | Devices() as GraffitiWebCameraDevice | All supported devices. |
-| isPaused | [[http://developer.xojo.com/boolean|Boolean]] | False | True when real-time display is paused. | +| isPaused | Boolean | False | True when real-time display is paused. | 
-| isPlaying | [[http://developer.xojo.com/boolean|Boolean]] | False | True when real-time display is playing. | +| isPlaying | Boolean | False | True when real-time display is playing. | 
-| Supported | [[http://developer.xojo.com/boolean|Boolean]] | False | True if the user's browser supports the API. |+| 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.