4.6.201909301839 • Published 5 years ago
@dfeidao/fd-m000012 v4.6.201909301839
See
https://dfeidao.gitee.io/widgets-mobile/
Installation
yarn add --dev @dfeidao/fd-m000012
fd-m000012 视频录制
需要在android/app/build.gradle文件中的defaultConfig里添加
missingDimensionStrategy 'react-native-camera', 'general'
Installation
yarn add --dev @dfeidao/fd-m000012
Attributes
progressColor
进度条颜色
progressBottomColor
进度条底部颜色
pictureQuality
照片压缩 值为0.0到1.0
recordQuality
视频压缩
playSoundOnCapture
拍照是否有声音
maxDuration
视频最大录制时间(单位:秒)
maxHeight
图像最大高度(保留原图比例)
visible
是否可见
takingRecording
是否开启摄像不传此参数默认开启
onCancel
关闭相机响应事件
takingPictures
是否开启拍照不传此参数默认开启
cameraType
开启相机前置后置镜头默认后置 cameraType?: 'front' | 'back';
onTakingComplete
拍照完成
onRecordingComplete
录制完成
完整使用示例
<Camera
visible={true}
progressColor='red'
// a003:render(fd,{show:false}) visible={d('show')}关闭相机响应
onCancel={a('a003')}
cameraType={'back'}
takingPictures={true}
takingRecording={true}
progressBottomColor='blue'
pictureQuality={1}
recordQuality='288p'
playSoundOnCapture={false}
maxDuration={100}
maxHeight={100}
onTakingComplete={a('a001')}
onRecordingComplete={a('a002')}
/>
4.6.201909301839
5 years ago
4.6.201909291817
5 years ago
4.6.201909291814
5 years ago
4.6.201908051129
5 years ago
4.6.201908011818
5 years ago
4.6.201906261541
5 years ago