Created
March 4, 2015 11:13
-
-
Save swennemans/59c898018afe1316019d to your computer and use it in GitHub Desktop.
Capturing video.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recordVideo() { | |
console.log(navigator.device.capture); | |
navigator.device.capture.captureVideo((mediaFile) => { | |
console.log('MediaFile is', mediaFile.fullPath); | |
//mediaFile.getFormatData((mediaFileData) => { | |
// console.log('MFD', mediaFileData); | |
// console.log('MFD', mediaFileData.duration); | |
//}, (error) => { | |
// console.log('Error occured', error.code); | |
//}); | |
}, (error)=> { | |
console.log('An error occured', error.code); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment