Differences

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

Link to this comparison view

Next revision
Previous revision
web:camera [2017/04/09 22:43] – created agcyphersweb:camera [2022/06/03 13:24] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Enumerations ======+==== See Also ==== 
 +[[web:cameradevice|GraffitiWebCameraDevice]] 
 + 
 +==== Enumerations ====
 ^ Name      ^ Values       ^ ^ Name      ^ Values       ^
 |  | This class exposes no enumerations. | |  | This class exposes no enumerations. |
  
-====== Constants ======+==== Constants ====
 ^ Name      ^ Type     ^ Value       ^ ^ Name      ^ Type     ^ Value       ^
 |  |  | This class exposes no constants. | |  |  | This class exposes no constants. |
  
-====== Events ======+==== Events ====
 ^ Definition      ^ Description       ^ ^ Definition      ^ Description       ^
 +| DevicesLoaded() | Raised when the browser has sent the list of supported devices. |
 | FrameReceived( frameData as String ) | BASE64 encoded image data received from camera. | | 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. |
Line 19: Line 25:
 | Stop() | Stop real-time display. | | Stop() | Stop real-time display. |
  
-====== Properties ======+==== Properties ====
 ^ Name      ^ Type       ^ Default Value       ^ Description       ^ ^ Name      ^ Type       ^ Default Value       ^ Description       ^
-IsPlaying | Boolean | False | True when real-time display is playing. |+Devices() as GraffitiWebCameraDevice | All supported devices. | 
 +| 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. | | 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.