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/10 05:43]
agcyphers created
web:camera [2018/08/02 19:50]
agcyphers
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 ​      ^
-| FrameReceived( frameData as String ) | BASE64 encoded image data received from camera. |+| 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. | 
 +| 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. |
  
-====== Methods ​======+==== Methods ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
 +| DeviceExists( deviceId as [[http://​developer.xojo.com/​string|String]] ) as [[http://​developer.xojo.com/​boolean|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 Double = 0.5 ) | Grab a JPEG capture of the display with quality set at Quality (0.0 to 1.0) |+| 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) |
 | 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. | 
-| Supported | Boolean | False | True if the user's browser supports the API. |+| isPaused | [[http://​developer.xojo.com/​boolean|Boolean]] | False | True when real-time display is paused. | 
 +| isPlaying | [[http://​developer.xojo.com/​boolean|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. |
  
-====== Examples ​======+==== Examples ====
 There are currently no examples for this class. There are currently no examples for this class.
  • Last modified: 12 months ago
  • by agcyphers