Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created March 2, 2017 23:29
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/ccb5dfa4b0968bcefef82797b85fc828 to your computer and use it in GitHub Desktop.
Save justinyoo/ccb5dfa4b0968bcefef82797b85fc828 to your computer and use it in GitHub Desktop.
Accessing to Camera on Mobile Devices from Vue.js + TypeScript + ASP.NET Core Applications
<template>
<div class="hello">
<video v-bind:src="src" v-bind:width="width" v-bind:height="height" v-bind:autoplay="autoplay" ref="video"></video>
<hr/>
<img v-bind:src="photo" alt="" v-bind:width="width" v-bind:height="height"/>
<hr/>
<button type="button" v-on:click="takePhoto">Take Photo</button>
<hr/>
...
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment