Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created March 2, 2017 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/487aeb50b6a78b4beab257a4eaf0939b to your computer and use it in GitHub Desktop.
Save justinyoo/487aeb50b6a78b4beab257a4eaf0939b to your computer and use it in GitHub Desktop.
Accessing to Camera on Mobile Devices from Vue.js + TypeScript + ASP.NET Core Applications
export default class Hello extends Vue {
src: string = null;
width: string = "400";
height: string = "300";
autoplay: boolean = true;
photo: string = null;
screenshotFormat: string = "image/jpeg";
private _refs: any = null;
private _video: HTMLVideoElement = null;
private _stream: MediaStream = null;
private _hasUserMedia: boolean = false;
private _ctx: CanvasRenderingContext2D = null;
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment