Hello Sweetyy , Try something like this:
<html>
<div id="videoArea"></div>
</html>
<script>
captureVideo () {
navigator.device.capture.captureVideo(this.onSuccess, this.fail, {limit: 1})
},
fail (e) {
alert('falhou' + e)
},
onSuccess (s) {
var v = "<video controls='controls'>"
v += "<source src='" + s[0].fullPath + "' type='video/mp4'>"
v += '</video>'
document.querySelector('#videoArea').innerHTML = v
}
</script>
Good Luck!