我正在嘗試使用TypeScript在Ionic 2應用程序中捕獲視頻。拍照很簡單,看起來很簡單。如何在TypeScript中記錄Ionic 2應用程序中的視頻?
Camera.getPicture({
destinationType: Camera.DestinationType.DATA_URL,
mediaType: Camera.MediaType.PICTURE,
targetHeight: 1000,
targetWidth: 1000
}).then((imageData) => {
this.base64Image = "data:image/jpeg;base64," + imageData;
}, (err) => {
console.log(err);
});
}
爲了捕捉視頻我需要做些什麼改變?
[HTML 5視頻錄製和存儲流]的可能重複(http://stackoverflow.com/questions/18509385/html-5-video-recording-and-storing-a-stream) – str