This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { BehaviorSubject, interval, Subscription, SchedulerLike } from 'rxjs'; | |
| import { switchMap, takeWhile, tap } from 'rxjs/operators'; | |
| class RxThread { | |
| private intervalSubject: BehaviorSubject<number>; | |
| private running: boolean = true; | |
| private subscription: Subscription | null = null; | |
| private func: () => Promise<void> | void = async () => {}; | |
| private scheduler: SchedulerLike | undefined; | |
| private isRunningFunc: boolean = false; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'regenerator-runtime/runtime'; | |
| // npm module | |
| import SeeSo, {InitializationErrorType,UserStatusOption} from 'seeso'; | |
| let videoStream = null; | |
| const licenseKey = 'input your key'; // Issue license key! -> https://console.seeso.io | |
| // gaze callback. | |
| function onGaze(gazeInfo) { | |
| // do something with gaze info. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | CameraPosition cameraPosition = new CameraPosition("SM-T720", -72f, -4f);// Galaxy tab s5e | |
| tracker.addCameraPosition(cameraPosition); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public static void initGazeTracker( | |
| Context context, String licenseKey, InitializationCallback callback) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public static void initGazeTracker( | |
| Context context, GazeDevice device, String licenseKey, InitializationCallback callback) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public static void initGazeTracker( | |
| Context context, GazeDevice device, String licenseKey, InitializationCallback callback) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | setParameters(timeInterval : 30, scrollSpeed : 0.4, scrollRegion : 0.5, accelerationFactor : 1.5) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | autoScrollView.calcScrollDistance(gazeY : gazeInfo.y) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | autoScrollView.stopAutoScroll() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | autoScrollView.startAutoScroll() | 
NewerOlder