xr:camerastatuschange
Description
This event is fired when the status of the camera changes. See
onCameraStatusChange from
XR8.addCameraPipelineModule() for more information on the possible status.
Example
const handleCameraStatusChange = function handleCameraStatusChange(detail) {
  console.log('status change', detail.status);
  switch (detail.status) {
    case 'requesting':
      // Do something
      break;
    case 'hasStream':
      // Do something
      break;
    case 'failed':
      this.app.fire('xr:realityerror');
      break;
  }
}
this.app.on('xr:camerastatuschange', handleCameraStatusChange, this)