Skip to content

Instantly share code, notes, and snippets.


justinyoo/Hello-1.ts Secret

Created Mar 2, 2017
What would you like to do?
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