Differences

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

Link to this comparison view

Both sides previous revision Previous revision
web:camera [2018/04/14 16:09]
127.0.0.1 external edit
web:camera [2018/08/02 19:50] (current)
agcyphers
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 ​      ^
 +| 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 [[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. |
Line 21: Line 27:
 ==== 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. | 
 +| 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. | | 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: 11 months ago
  • by agcyphers