0

I want the Android camcorder on mobile devices to start when the button is clicked. After the video is recorded, I want reflect() to be initiated. My problem is that the function is not completed, and I think (but not 100% sure) this happens because I am using type='file' instead of a different type.

I've tried adding an event handler, which also didn't work. Any idea how I can get this a function to perform after clicking on the input button?

<form>
    <input type="file" accept="video/*;capture=camcorder" class="custom-file-input" onselect="reflect()" />
</form>

<script>
var reflect = function(){
    console.log('the reflect function is working.')
}
</script>
keith.quiche
  • 15
  • 1
  • 8

0 Answers0