Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web:camera [2018/04/14 16:09]
127.0.0.1 external edit
web:camera [2019/10/23 05:53] (current)
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 ==== ==== Examples ====
 There are currently no examples for this class. There are currently no examples for this class.