Skip to content

Commit

Permalink
Merge pull request #117 from AlexElin/specify_explicit_types
Browse files Browse the repository at this point in the history
refactoring: specify types for `video` and `canvas`
  • Loading branch information
basst314 committed Dec 12, 2021
2 parents d99f8e8 + 21d6e4b commit db71daa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/modules/webcam/webcam/webcam.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AfterViewInit, Component, EventEmitter, Input, OnDestroy, Output, ViewChild} from '@angular/core';
import {AfterViewInit, Component, ElementRef, EventEmitter, Input, OnDestroy, Output, ViewChild} from '@angular/core';
import {WebcamInitError} from '../domain/webcam-init-error';
import {WebcamImage} from '../domain/webcam-image';
import {Observable, Subscription} from 'rxjs';
Expand Down Expand Up @@ -56,9 +56,9 @@ export class WebcamComponent implements AfterViewInit, OnDestroy {
private switchCameraSubscription: Subscription;
/** MediaStream object in use for streaming UserMedia data */
private mediaStream: MediaStream = null;
@ViewChild('video', { static: true }) private video: any;
@ViewChild('video', { static: true }) private video: ElementRef<HTMLVideoElement>;
/** Canvas for Video Snapshots */
@ViewChild('canvas', { static: true }) private canvas: any;
@ViewChild('canvas', { static: true }) private canvas: ElementRef<HTMLCanvasElement>;

/** width and height of the active video stream */
private activeVideoSettings: MediaTrackSettings = null;
Expand Down

0 comments on commit db71daa

Please sign in to comment.